Documentation ¶
Overview ¶
Package handler implements network RPC handler
Index ¶
- type Network
- func (n *Network) Graph(ctx context.Context, req *pbNet.GraphRequest, resp *pbNet.GraphResponse) error
- func (n *Network) Nodes(ctx context.Context, req *pbNet.NodesRequest, resp *pbNet.NodesResponse) error
- func (n *Network) Routes(ctx context.Context, req *pbNet.RoutesRequest, resp *pbNet.RoutesResponse) error
- func (n *Network) Services(ctx context.Context, req *pbNet.ServicesRequest, resp *pbNet.ServicesResponse) 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) Graph ¶ added in v1.11.0
func (n *Network) Graph(ctx context.Context, req *pbNet.GraphRequest, resp *pbNet.GraphResponse) error
Graph returns the network graph from this root node
func (*Network) Nodes ¶ added in v1.11.0
func (n *Network) Nodes(ctx context.Context, req *pbNet.NodesRequest, resp *pbNet.NodesResponse) error
Nodes returns the list of nodes
func (*Network) Routes ¶ added in v1.11.0
func (n *Network) Routes(ctx context.Context, req *pbNet.RoutesRequest, resp *pbNet.RoutesResponse) error
Routes returns a list of routing table routes
func (*Network) Services ¶ added in v1.11.0
func (n *Network) Services(ctx context.Context, req *pbNet.ServicesRequest, resp *pbNet.ServicesResponse) error
Services returns a list of services based on the routing table
Click to show internal directories.
Click to hide internal directories.