Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OPList means query a type list OPList = "LIST" // OPDelete means delete a type data OPDelete = "DELETE" // OPCreate means insert a type data OPCreate = "INSERT" // OPUpdate means update a type data OPUpdate = "UPDATE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Notification ¶
Notification structure containing event notifications. OPType means the type of event, RawData means the object content of event
type NotifyInfo ¶
type NotifyInfo struct { Notify Notification ChannelName string }
NotifyInfo stores a structure of a certain type
type NotifyWatcher ¶
type NotifyWatcher struct { NotifyMsg chan *NotifyInfo // contains filtered or unexported fields }
NotifyWatcher Event listening structure
func (*NotifyWatcher) StartProcessor ¶
func (n *NotifyWatcher) StartProcessor() error
StartProcessor for the synchronizing, watch the events and process them
Click to show internal directories.
Click to hide internal directories.