Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventListener ¶
type EventListener struct {
// contains filtered or unexported fields
}
EventListener represents database event listener.
func NewEventListener ¶
NewEventListener creates new database event listener.
func NewNamespaceListener ¶
NewNamespaceListener creates new database event listener for Namespace entity.
func (EventListener) GetChannelName ¶
func (el EventListener) GetChannelName() string
GetChannelName returns current channel name.
func (EventListener) Listen ¶
func (el EventListener) Listen() <-chan string
Listen listens for incoming database events.
type EventListenerProvider ¶
type EventListenerProvider interface { // Listen listens for incoming database events. Listen() <-chan string // GetChannelName returns channel name. GetChannelName() string }
EventListenerProvider provides an interface to work with database event listener.
Click to show internal directories.
Click to hide internal directories.