Documentation
¶
Overview ¶
Package handler implements network RPC handler
Index ¶
- type Network
- func (n *Network) ListNodes(ctx context.Context, req *pbNet.ListRequest, resp *pbNet.ListResponse) error
- func (n *Network) ListRoutes(ctx context.Context, req *pbRtr.Request, resp *pbRtr.ListResponse) error
- func (n *Network) Neighbourhood(ctx context.Context, req *pbNet.NeighbourhoodRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
Network implements network handler
func (*Network) ListNodes ¶
func (n *Network) ListNodes(ctx context.Context, req *pbNet.ListRequest, resp *pbNet.ListResponse) error
ListNodes returns a list of all accessible nodes in the network
func (*Network) ListRoutes ¶
func (n *Network) ListRoutes(ctx context.Context, req *pbRtr.Request, resp *pbRtr.ListResponse) error
ListRoutes returns a list of routing table routes
func (*Network) Neighbourhood ¶
func (n *Network) Neighbourhood(ctx context.Context, req *pbNet.NeighbourhoodRequest, resp *pbNet.NeighbourhoodResponse) error
Neighbourhood returns a list of immediate neighbours
Click to show internal directories.
Click to hide internal directories.