Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtocolAndAddress ¶
Defaults to tcp
func SetEventSwitch ¶
func SetEventSwitch(evsw types.EventSwitch, eventables ...types.Eventable)
Add the event switch to reactors, mempool, etc.
Types ¶
type Node ¶
type Node struct {
cmn.BaseService
// contains filtered or unexported fields
}
func NewNodeDefault ¶
func (*Node) AddListener ¶
Add a Listener to accept inbound peer connections. Add listeners before starting the Node. The first listener is the primary listener (in NodeInfo)
func (*Node) EventSwitch ¶
func (n *Node) EventSwitch() types.EventSwitch
func (*Node) RunForever ¶
func (n *Node) RunForever()
type NodeGreeting ¶
type PrivNodeID ¶
func (*PrivNodeID) SignGreeting ¶
func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting
type SignedNodeGreeting ¶
type SignedNodeGreeting struct {
NodeGreeting
Signature crypto.Signature
}
Click to show internal directories.
Click to hide internal directories.