Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrListenerAlreadyExists = errors.New("Listener already exists") ErrListenerDoesNotExists = errors.New("Listener does not exists") ErrNoListeners = errors.New("No listeners") // EOFEvent is sent when the event listener receives an EOF error. EOFEvent = &APIEvent{ Type: "EOF", Status: "EOF", } )
Functions ¶
This section is empty.
Types ¶
type APIActor ¶
type APIActor struct { ID string `json:"id,omitempty"` Attributes map[string]string `json:"attributes,omitempty"` }
APIActor represents an actor that accomplishes something for an event
type APIEvent ¶
type APIEvent struct { // New API Fields in 1.22 Action string `json:"action,omitempty"` Type string `json:"type,omitempty"` Actor APIActor `json:"actor,omitempty"` // Old API fields for < 1.22 Status string `json:"status,omitempty"` ID string `json:"id,omitempty"` From string `json:"from,omitempty"` // Fields in both Time int64 `json:"time,omitempty"` TimeNano int64 `json:"timeNano,omitempty"` }
Click to show internal directories.
Click to hide internal directories.