Documentation ¶
Index ¶
- type CLI
- type Entry
- type File
- type Line
- type Monitor
- func (m *Monitor) CloseFiles() error
- func (m *Monitor) FlushOffsets()
- func (m *Monitor) Generator() (*MonitorGenerator, error)
- func (m *Monitor) OpenFiles(once bool, args []string) error
- func (m *Monitor) OpenOffsetDB(path string) error
- func (m *Monitor) Run(enc cypress.Receiver) error
- func (m *Monitor) SignalShutdown()
- func (m *Monitor) WaitShutdown()
- func (m *Monitor) WatchFiles()
- type MonitorGenerator
- type OffsetDB
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct { Once bool `short:"o" long:"once" description:"Read the file once, don't follow it"` DB string `short:"d" long:"offset-db" description:"Track file offsets and use them"` Debug bool `long:"debug" description:"Output debug information to stderr"` // contains filtered or unexported fields }
type Entry ¶
type Entry struct { Path string `json:"path"` Offset int64 `json:"offset"` SameFileID samefile.ID `json:"samefileid"` }
func (*Entry) CheckValid ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) GenerateLine ¶
type Monitor ¶
type Monitor struct { Debug bool // contains filtered or unexported fields }
func NewMonitor ¶
func NewMonitor() *Monitor
func (*Monitor) CloseFiles ¶
func (*Monitor) FlushOffsets ¶
func (m *Monitor) FlushOffsets()
func (*Monitor) Generator ¶
func (m *Monitor) Generator() (*MonitorGenerator, error)
func (*Monitor) OpenOffsetDB ¶
func (*Monitor) SignalShutdown ¶
func (m *Monitor) SignalShutdown()
func (*Monitor) WaitShutdown ¶
func (m *Monitor) WaitShutdown()
func (*Monitor) WatchFiles ¶
func (m *Monitor) WatchFiles()
type MonitorGenerator ¶
type MonitorGenerator struct {
// contains filtered or unexported fields
}
func (*MonitorGenerator) Close ¶
func (m *MonitorGenerator) Close() error
type OffsetDB ¶
type OffsetDB struct {
// contains filtered or unexported fields
}
func NewOffsetDB ¶
Click to show internal directories.
Click to hide internal directories.