diff --git a/event.go b/event.go index f62431cb61d7ff5fee366890cf0b16d582af0de8..c8ae46f4a3c39a3adbc552b42bb5c4f425038f8f 100644 --- a/event.go +++ b/event.go @@ -11,10 +11,3 @@ type FileEvent struct { fileinfo *os.FileInfo } - -type FileState struct { - Source *string `json:"source,omitempty"` - Offset int64 `json:"offset,omitempty"` - Inode uint64 `json:"inode,omitempty"` - Device uint64 `json:"device,omitempty"` -} diff --git a/filestate_darwin.go b/filestate_darwin.go new file mode 100644 index 0000000000000000000000000000000000000000..b22e994e93cc3001822105b4e1917396a93bf171 --- /dev/null +++ b/filestate_darwin.go @@ -0,0 +1,8 @@ +package main + +type FileState struct { + Source *string `json:"source,omitempty"` + Offset int64 `json:"offset,omitempty"` + Inode uint64 `json:"inode,omitempty"` + Device int32 `json:"device,omitempty"` +} diff --git a/filestate_linux.go b/filestate_linux.go new file mode 100644 index 0000000000000000000000000000000000000000..908e65aab9fcd9ee5c4a815a47e95742d820b15a --- /dev/null +++ b/filestate_linux.go @@ -0,0 +1,8 @@ +package main + +type FileState struct { + Source *string `json:"source,omitempty"` + Offset int64 `json:"offset,omitempty"` + Inode uint64 `json:"inode,omitempty"` + Device uint64 `json:"device,omitempty"` +}