Documentation ¶
Index ¶
- type Node
- func (p *Node) AddNode(info utils.NodeInfo)
- func (p *Node) Close()
- func (p *Node) Handle(handler func(utils.NodeID, interface{}) interface{})
- func (p *Node) KnownNodes() []utils.NodeInfo
- func (p *Node) RegisterMessageType(name string, typ interface{})
- func (p *Node) Run()
- func (p *Node) Send(dst utils.NodeID, msg interface{}, handler func(interface{})) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) KnownNodes ¶
func (*Node) RegisterMessageType ¶
Click to show internal directories.
Click to hide internal directories.