Documentation ¶ Index ¶ type Event func NewEvent(name, op string) Event func (e *Event) String() string type EventLog func New(w io.Writer) EventLog Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Event ¶ added in v0.4.0 type Event struct { // Name the path of file change Name string `json:"name"` // Op the operation of file change Op string `json:"op"` // Time the time of file change Time timeutil.Time `json:"time"` } Event the description of file change event func NewEvent ¶ func NewEvent(name, op string) Event NewEvent create an event instance func (*Event) String ¶ added in v0.4.0 func (e *Event) String() string String return the format event info type EventLog ¶ type EventLog interface { // Write write event info to output writer Write(event Event) error } EventLog the event log recorder func New ¶ func New(w io.Writer) EventLog New create an EventLog instance with io.Writer Source Files ¶ View all Source files event.go event_log.go Click to show internal directories. Click to hide internal directories.