pb

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 222

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 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 added in v1.9.1

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 UnimplementedDnsServiceServer added in v1.9.1

type UnimplementedDnsServiceServer struct {
}

UnimplementedDnsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDnsServiceServer) Query added in v1.9.1

type UnsafeDnsServiceServer added in v1.9.1

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