Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeRouter ¶
type NodeRouter struct {
// contains filtered or unexported fields
}
func NewNodeRouter ¶
func NewNodeRouter() *NodeRouter
func (*NodeRouter) AddRoute ¶
func (r *NodeRouter) AddRoute(nodeType string, routingFunction RoutingFunc)
func (*NodeRouter) Route ¶
func (r *NodeRouter) Route(ctx context.Context, nodeType string, msg *cherryMessage.Message) (cherryFacade.IMember, error)
type RoutingFunc ¶
type RoutingFunc func( ctx context.Context, nodeType string, msg *cherryMessage.Message, ) (cherryFacade.IMember, error)
Click to show internal directories.
Click to hide internal directories.