Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event interface { Kind() EventKind Type() ImplementationType }
type EventImplementations ¶
type EventImplementations []Event
type EventKind ¶
type EventKind string
const ( // NewFile is whenever a new file is created in a given directory NewFile EventKind = "NewFile" )
type ImplementationType ¶
type ImplementationType string
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) AddEvent ¶
AddEvent is a thread safe way to add an event to the queue. Use this function to add an event to the queue, it will processed FIFO
func (*Queue) ConcurrentStart ¶
ConcurrentStart will start the queue process and begin watching for events. Use this function to start the queue, and authenticate each of the defined brokers.
func (*Queue) PopFromQueue ¶
PopFromQueue is a thread safe way to pop the oldest event from the queue The queue behaves as a FIFO queue, and right now that cannot be configured. Use this function to take the oldest message out of the queue to operate on it. PopFromQueue will return an error if there is nothing in the queue.
Click to show internal directories.
Click to hide internal directories.