Documentation
¶
Index ¶
Constants ¶
View Source
const ( SUCCESS = 0 + iota ERROR )
View Source
const ( UPDATE = 1 << iota DELETE )
View Source
const ( //Local event status flags DISCARDED = EventStatus(1) << iota //event is to be discarded because it errored or is duplicate NOSAVE //event should not be saved (only current reason is because its in the top half of local processing) )
View Source
const API_VERSION_STRING = "0.1"
View Source
const VERSION_STRING = "0.1"
Variables ¶
This section is empty.
Functions ¶
func SetupCleanExitOnSignals ¶
func SetupCleanExitOnSignals()
func WaitOnExit ¶
func WaitOnExit() int
func WaitOnExitChan ¶
func WaitOnExitChan(waiterChan chan int)
Types ¶
type APIResponse ¶
type Event ¶
type Event struct {
Id int64
Type EventType
Path string
Hash string
Predecessor string
Timestamp int64
Permissions os.FileMode
Username string
LocalStatus EventStatus `json:"-"`
LocalId int64 `json:"-"`
InDB bool `json:"-"` //defaults to false. Omitted from json marshalling.
}
func (*Event) IsSameEvent ¶
Click to show internal directories.
Click to hide internal directories.