Documentation
¶
Index ¶
- Constants
- type Ncd
- func (n *Ncd) AddMapper(mapper eventmappers.Mapper) *Ncd
- func (n *Ncd) GetDBListener() *ncdtransport.PgEventListener
- func (n *Ncd) GetMapper(topic string) (*eventmappers.Mapper, error)
- func (n *Ncd) GetTransport() *ncdtransport.NcdPubSub
- func (n *Ncd) IsLeader() bool
- func (n *Ncd) IsRunning() bool
- func (n *Ncd) Run()
- func (n *Ncd) RunProcess()
- func (n *Ncd) SetLeader(leader bool) *Ncd
- func (n *Ncd) Stop()
- type NcdConf
Constants ¶
View Source
const ( CHANNEL_NODES = "nodes" CHANNEL_DIRECTOR = "director" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ncd ¶
type Ncd struct {
// contains filtered or unexported fields
}
func (*Ncd) AddMapper ¶
func (n *Ncd) AddMapper(mapper eventmappers.Mapper) *Ncd
AddMapper adds a mapper to the ncd
func (*Ncd) GetDBListener ¶
func (n *Ncd) GetDBListener() *ncdtransport.PgEventListener
GetDBListener return PgEventListener instance
func (*Ncd) GetMapper ¶
func (n *Ncd) GetMapper(topic string) (*eventmappers.Mapper, error)
GetMapper by a topic
func (*Ncd) GetTransport ¶
func (n *Ncd) GetTransport() *ncdtransport.NcdPubSub
GetTransport returns NcdPubSub instance
Directories
¶
Path | Synopsis |
---|---|
modules
|
|
eventmappers
To-be a plugin in a future.
|
To-be a plugin in a future. |
Click to show internal directories.
Click to hide internal directories.