Documentation ¶
Index ¶
- Constants
- func Create(broker *nucleo.BrokerDelegates) transit.Transit
- type ActionError
- type PubSub
- func (pubsub *PubSub) Connect() chan error
- func (pubsub *PubSub) Disconnect() chan error
- func (pubsub *PubSub) DiscoverNode(nodeID string)
- func (pubsub *PubSub) DiscoverNodes() chan bool
- func (pubsub *PubSub) Emit(context nucleo.BrokerContext)
- func (pubsub *PubSub) Ready()
- func (pubsub *PubSub) Request(context nucleo.BrokerContext) chan nucleo.Payload
- func (pubsub *PubSub) SendHeartbeat()
- func (pubsub *PubSub) SendPing()
Constants ¶
View Source
const DATATYPE_BUFFER = 3
View Source
const DATATYPE_JSON = 2
View Source
const DATATYPE_NULL = 1
View Source
const DATATYPE_UNDEFINED = 0
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionError ¶
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
PubSub is a transit implementation.
func (*PubSub) Connect ¶
Connect : connect the transit with the transporter, subscribe to all events and start publishing its node info
func (*PubSub) Disconnect ¶
Disconnect : disconnect the transit's transporter.
func (*PubSub) DiscoverNode ¶
func (*PubSub) DiscoverNodes ¶
DiscoverNodes will check if there are neighbours and return true if any are found ;).
func (*PubSub) Emit ¶
func (pubsub *PubSub) Emit(context nucleo.BrokerContext)
Emit emit an event to all services that listens to this event.
func (*PubSub) Request ¶
func (pubsub *PubSub) Request(context nucleo.BrokerContext) chan nucleo.Payload
func (*PubSub) SendHeartbeat ¶
func (pubsub *PubSub) SendHeartbeat()
Click to show internal directories.
Click to hide internal directories.