Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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)
var File_dns_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*DnsPacket) ProtoMessage()
func (*DnsPacket) ProtoReflect ¶ added in v1.9.1
func (x *DnsPacket) ProtoReflect() protoreflect.Message
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.
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.