handler

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package handler implements network RPC handler

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	Network network.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

Neighbourhood returns a list of immediate neighbours

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL