Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AckEvent ¶
type AckEvent struct {
// contains filtered or unexported fields
}
AckEvent is a registrar ack event which triggers an update to the saved resume offsets for a file
func NewAckEvent ¶
func NewAckEvent(events []*core.EventDescriptor) *AckEvent
NewAckEvent creates a new registrar ack event
type DeletedEvent ¶
type DeletedEvent struct {
// contains filtered or unexported fields
}
func NewDeletedEvent ¶
func NewDeletedEvent(stream core.Stream) *DeletedEvent
type DiscoverEvent ¶
type DiscoverEvent struct {
// contains filtered or unexported fields
}
func NewDiscoverEvent ¶
type EventProcessor ¶
type EventSpool ¶
type EventSpool struct {
// contains filtered or unexported fields
}
func (*EventSpool) Add ¶
func (r *EventSpool) Add(event EventProcessor)
func (*EventSpool) Close ¶
func (r *EventSpool) Close()
func (*EventSpool) Send ¶
func (r *EventSpool) Send()
type EventSpooler ¶
type EventSpooler interface { Close() Add(EventProcessor) Send() }
type FileIdentity ¶
type FileInfo ¶
type FileInfo struct {
// contains filtered or unexported fields
}
func NewFileInfo ¶
type FileState ¶
type FileState struct { FileStateOS Source *string `json:"source,omitempty"` Offset int64 `json:"offset,omitempty"` }
type FileStateOS ¶
type FileStateOS struct { Inode uint64 `json:"inode,omitempty"` Device uint64 `json:"device,omitempty"` }
func (*FileStateOS) PopulateFileIds ¶
func (fs *FileStateOS) PopulateFileIds(info os.FileInfo)
type Registrar ¶
type Registrar struct { core.PipelineSegment sync.Mutex // contains filtered or unexported fields }
func (*Registrar) Connect ¶
func (r *Registrar) Connect() EventSpooler
func (*Registrar) LoadPrevious ¶
func (r *Registrar) LoadPrevious(callback_func LoadPreviousFunc) (have_previous bool, err error)
type Registrator ¶
type Registrator interface { Connect() EventSpooler LoadPrevious(LoadPreviousFunc) (bool, error) }
type RenamedEvent ¶
type RenamedEvent struct {
// contains filtered or unexported fields
}
func NewRenamedEvent ¶
func NewRenamedEvent(stream core.Stream, source string) *RenamedEvent
Click to show internal directories.
Click to hide internal directories.