server

package
v0.0.0-...-9e1cc8c Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsServer

type DnsServer struct {
	pb.UnimplementedDnsServiceServer
	// contains filtered or unexported fields
}

func NewDnsServer

func NewDnsServer(nns pkg.NnsReader, config *pkg.DnsConfig) *DnsServer

func (*DnsServer) Query

func (d *DnsServer) Query(ctx context.Context, p *pb.DnsPacket) (*pb.DnsPacket, error)

type NnsEventServer

type NnsEventServer struct {
	Nns        *NnsServer
	NodeClient creg.NodeClient
	Org        string
	epb.UnimplementedEventNotificationServiceServer
	// contains filtered or unexported fields
}

func NewNnsEventServer

func NewNnsEventServer(orgName string, c creg.NodeClient, s *NnsServer, o string) *NnsEventServer

func (*NnsEventServer) EventNotification

func (l *NnsEventServer) EventNotification(ctx context.Context, e *epb.Event) (*epb.EventResponse, error)

type NnsServer

type NnsServer struct {
	pb.UnimplementedNnsServer
	// contains filtered or unexported fields
}

func NewNnsServer

func NewNnsServer(nnsClient *pkg.Nns, nodeOrgMapping *pkg.NodeOrgMap, config *pkg.DnsConfig) *NnsServer

func (*NnsServer) Delete

func (*NnsServer) Get

func (*NnsServer) GetMesh

func (*NnsServer) GetNodeIPMapList

func (n *NnsServer) GetNodeIPMapList(ctx context.Context, in *pb.NodeIPMapListRequest) (*pb.NodeIPMapListResponse, error)

func (*NnsServer) GetNodeOrgMapList

func (n *NnsServer) GetNodeOrgMapList(ctx context.Context, in *pb.NodeOrgMapListRequest) (*pb.NodeOrgMapListResponse, error)

func (*NnsServer) List

func (*NnsServer) Set

Jump to

Keyboard shortcuts

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