Documentation
¶
Index ¶
- type Node
- func (n *Node) Close()
- func (n *Node) GetNeighborNodes() map[string]discovery.Node
- func (n *Node) KeepAlive(node discovery.Node) error
- func (n *Node) NatsConn() *nats.Conn
- func (n *Node) NewNatsRPCClient(service, peerNID string, parameters map[string]interface{}) (*nrpc.Client, error)
- func (n *Node) ServiceRegistrar() grpc.ServiceRegistrar
- func (n *Node) Start(natURL string) error
- func (n *Node) Watch(service string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { // Node ID NID string // contains filtered or unexported fields }
Node .
func (*Node) GetNeighborNodes ¶
GetNeighborNodes get neighbor nodes.
func (*Node) NewNatsRPCClient ¶
func (*Node) ServiceRegistrar ¶
func (n *Node) ServiceRegistrar() grpc.ServiceRegistrar
ServiceRegistrar return grpc.ServiceRegistrar of this node, used to create grpc services
Click to show internal directories.
Click to hide internal directories.