Commit f6a2c24d authored by Willie Abrams's avatar Willie Abrams

abstract out OS dependent file tracking structures

if we are going to rely on a dev value from stat, we need to realize
it's platform dependent and adjust accordingly
parent ef9aae8d
......@@ -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 int32 `json:"device,omitempty"`
}
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"`
}
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"`
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment