Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registrator ¶
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.
Click to show internal directories.
Click to hide internal directories.