server

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCIDR

func ToCIDR(family uint8, prefix net.IP, prefixLen int) string

ToCIDR formats IP address as CIDR.

Types

type NetworkServer

type NetworkServer struct {
	networkapi.UnimplementedNetworkServiceServer
}

NetworkServer implements NetworkService API.

func (*NetworkServer) Interfaces

func (r *NetworkServer) Interfaces(ctx context.Context, in *empty.Empty) (reply *networkapi.InterfacesResponse, err error)

Interfaces returns the hosts network interfaces and addresses.

func (*NetworkServer) Register

func (r *NetworkServer) Register(s *grpc.Server)

Register implements the factory.Registrator interface.

func (*NetworkServer) Routes

func (r *NetworkServer) Routes(ctx context.Context, in *empty.Empty) (reply *networkapi.RoutesResponse, err error)

Routes returns the hosts routing table.

Jump to

Keyboard shortcuts

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