Documentation ¶
Overview ¶
Package observer NOTES
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // IsReady returns 'true' if the observer is already initialized, // which means the start cursor is loaded from db successfully. IsReady() bool // Next return a channel which is only used by caller, and it blocks // until a batch of events occurs. Next() <-chan []*types.EventMeta // CurrentCursor returns the latest consumed event's cursor id which is // consumed by the local cache. CurrentCursor() uint32 // LoopInterval return the observer's loop duration to watch the events. LoopInterval() time.Duration }
Interface defines all the observer support operations.
Click to show internal directories.
Click to hide internal directories.