event.go 462 Bytes
Newer Older
1
package main
Jordan Sissel's avatar
Jordan Sissel committed
2

3 4
import "os"

Jordan Sissel's avatar
Jordan Sissel committed
5 6
type FileEvent struct {
  Source *string `json:"source,omitempty"`
Jordan Sissel's avatar
Jordan Sissel committed
7 8
  Offset uint64 `json:"offset,omitempty"`
  Line uint64 `json:"line,omitempty"`
Jordan Sissel's avatar
Jordan Sissel committed
9
  Text *string `json:"text,omitempty"`
10
  Fields *map[string]string
11 12

  fileinfo *os.FileInfo
Jordan Sissel's avatar
Jordan Sissel committed
13
}
14 15 16 17 18 19 20

type FileState struct {
  Source *string `json:"source,omitempty"`
  Offset uint64 `json:"offset,omitempty"`
  Inode uint64 `json:"inode,omitempty"`
  Device uint64 `json:"device,omitempty"`
}