reg

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registrator

type Registrator struct {
	Networkd *networkd.Networkd
}

Registrator is the concrete type that implements the factory.Registrator and proto.Init interfaces.

func NewRegistrator

func NewRegistrator(n *networkd.Networkd) *Registrator

NewRegistrator builds new Registrator instance.

func (*Registrator) Interfaces

func (r *Registrator) Interfaces(ctx context.Context, in *empty.Empty) (reply *proto.InterfacesReply, err error)

Interfaces returns the hosts network interfaces and addresses.

func (*Registrator) Register

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

Register implements the factory.Registrator interface.

func (*Registrator) Routes

func (r *Registrator) Routes(ctx context.Context, in *empty.Empty) (reply *proto.RoutesReply, 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