Documentation ¶
Index ¶
- Variables
- func BackOffFileCheck(file string) bool
- func FileExist(file string) bool
- type CMD
- type EventMap
- type MC
- func (m *MC) AddEvent(e string)
- func (m *MC) AllEvents(event string)
- func (m *MC) Count() int
- func (m *MC) File() string
- func (m *MC) FireSlaveTickEvent(event string)
- func (m *MC) FireSlaveWriteEvent(event string)
- func (m *MC) GetB() []byte
- func (m *MC) GetTick() time.Time
- func (m *MC) Inc() int
- func (m *MC) LastEvent() (EventMap, error)
- func (m *MC) Read()
- func (m *MC) RemoveRename(event string)
- func (m *MC) ResetRemoveRename()
- func (m *MC) SetFile(file string)
- func (m *MC) StatusRemoveRename() bool
- func (m *MC) Tick(event string)
- func (m *MC) TickUpdate()
- func (m *MC) WriteEvent(event string)
- type MCError
- type WatchFuncExec
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxFileSize = 20000000
MaxFileSize to open
Functions ¶
Types ¶
type CMD ¶
type CMD struct { CmdWrite func(string) CmdAllEvents func(string) TickCmd func(string) File string sync.Mutex // contains filtered or unexported fields }
CMD -- format for config
type MC ¶
type MC struct { sync.Mutex Slave WatchFuncExec // contains filtered or unexported fields }
MC --
func (*MC) FireSlaveTickEvent ¶
func (*MC) FireSlaveWriteEvent ¶
func (*MC) WriteEvent ¶
WriteEvent -- hold no locks on this one
type WatchFuncExec ¶
Click to show internal directories.
Click to hide internal directories.