Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Idle ... Idle statusEnum = iota // Sync ... Sync )
View Source
const ( // Imported ... Imported eventEnum = iota )
Variables ¶
View Source
var ErrUnknownEvent = errors.New("sync event: unknown")
ErrUnknownEvent is thrown when an unknown sync event is encountered.
View Source
var ErrUnknownStatus = errors.New("sync status: unknown")
ErrUnknownStatus is thrown when an unknown sync status is encountered.
Functions ¶
This section is empty.
Types ¶
type EventEnum ¶
type EventEnum interface { Type() eventEnum String() string }
EventEnum are the exported sync events
func EventEnumFromString ¶
EventEnumFromString parses a string to return the sync event
type StatusEnum ¶
type StatusEnum interface { Type() statusEnum String() string }
StatusEnum are the available sync statuses of the node
func AllStatusEnums ¶
func AllStatusEnums() []StatusEnum
AllStatusEnums returns all of the sync statuses
func StatusEnumFromString ¶
func StatusEnumFromString(s string) (StatusEnum, error)
StatusEnumFromString parses a string to return the sync status
Click to show internal directories.
Click to hide internal directories.