dns

package
v0.0.0-...-5c8fa84 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DnsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "coredns.dns.DnsService",
	HandlerType: (*DnsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Query",
			Handler:    _DnsService_Query_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "dns.proto",
}

DnsService_ServiceDesc is the grpc.ServiceDesc for DnsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func Module

func Module(ball *mud.Ball)

func RegisterDnsServiceServer

func RegisterDnsServiceServer(s grpc.ServiceRegistrar, srv DnsServiceServer)

Types

type DnsPacket

type DnsPacket struct {
	Msg []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*DnsPacket) Descriptor deprecated

func (*DnsPacket) Descriptor() ([]byte, []int)

Deprecated: Use DnsPacket.ProtoReflect.Descriptor instead.

func (*DnsPacket) GetMsg

func (x *DnsPacket) GetMsg() []byte

func (*DnsPacket) ProtoMessage

func (*DnsPacket) ProtoMessage()

func (*DnsPacket) ProtoReflect

func (x *DnsPacket) ProtoReflect() protoreflect.Message

func (*DnsPacket) Reset

func (x *DnsPacket) Reset()

func (*DnsPacket) String

func (x *DnsPacket) String() string

type DnsServiceClient

type DnsServiceClient interface {
	Query(ctx context.Context, in *DnsPacket, opts ...grpc.CallOption) (*DnsPacket, error)
}

DnsServiceClient is the client API for DnsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewDnsServiceClient

func NewDnsServiceClient(cc grpc.ClientConnInterface) DnsServiceClient

type DnsServiceServer

type DnsServiceServer interface {
	Query(context.Context, *DnsPacket) (*DnsPacket, error)
	// contains filtered or unexported methods
}

DnsServiceServer is the server API for DnsService service. All implementations must embed UnimplementedDnsServiceServer for forward compatibility

type Endpoint

type Endpoint func(s grpc.ServiceRegistrar)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(service *Service) (*Server, error)

func (*Server) Run

func (s *Server) Run() error

type Service

type Service struct {
	Db *db.Persistence
	UnimplementedDnsServiceServer
}

func NewService

func NewService(db *db.Persistence) *Service

func (*Service) Query

func (d *Service) Query(ctx context.Context, in *DnsPacket) (*DnsPacket, error)

type UnimplementedDnsServiceServer

type UnimplementedDnsServiceServer struct {
}

UnimplementedDnsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDnsServiceServer) Query

type UnsafeDnsServiceServer

type UnsafeDnsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDnsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DnsServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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