Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transit ¶
type Transit interface { Emit(nucleo.BrokerContext) Request(nucleo.BrokerContext) chan nucleo.Payload Connect() chan error Disconnect() chan error DiscoverNode(nodeID string) //DiscoverNodes checks if there are neighbours and return true if any are found ;). DiscoverNodes() chan bool SendHeartbeat() }
type Transport ¶
type Transport interface { Connect() chan error Disconnect() chan error Subscribe(command, nodeID string, handler TransportHandler) Publish(command, nodeID string, message nucleo.Payload) SetPrefix(prefix string) SetNodeID(nodeID string) SetSerializer(serializer serializer.Serializer) }
type TransportHandler ¶
type TransportHandler func(nucleo.Payload)
type ValidateMsgFunc ¶
type ValidateMsgFunc func(nucleo.Payload) bool
Click to show internal directories.
Click to hide internal directories.