Skip to content

Commit

Permalink
Merge pull request #30 from BenB196/staging
Browse files Browse the repository at this point in the history
Added missing omitempties
  • Loading branch information
BenB196 authored Apr 13, 2020
2 parents 43168be + ebcc086 commit fb593ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ffs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ import (

//The main body of a file event record
type FileEvent struct {
EventId string `json:"eventId"`
EventType string `json:"eventType"`
EventId string `json:"eventId,omitempty"`
EventType string `json:"eventType,omitempty"`
EventTimestamp *time.Time `json:"eventTimestamp,omitempty"`
InsertionTimestamp *time.Time `json:"insertionTimestamp,omitempty"`
FilePath string `json:"filePath,omitempty"`
FileName string `json:"fileName"`
FileName string `json:"fileName,omitempty"`
FileType string `json:"fileType,omitempty"`
FileCategory string `json:"fileCategory,omitempty"`
IdentifiedExtensionCategory string `json:"identifiedExtensionCategory,omitempty"`
CurrentExtensionCategory string `json:"currentExtensionCategory,omitempty"`
FileSize *int `json:"fileSize"`
FileSize *int `json:"fileSize,omitempty"`
FileOwner []string `json:"fileOwner,omitempty"` //Array of owners
Md5Checksum string `json:"md5Checksum,omitempty"`
Sha256Checksum string `json:"sha256Checksum,omitempty"`
Expand Down

0 comments on commit fb593ef

Please sign in to comment.