Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_dns_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDnsServiceServer ¶
func RegisterDnsServiceServer(s *grpc.Server, 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 v0.1.2
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDnsServiceClient ¶
func NewDnsServiceClient(cc grpc.ClientConnInterface) DnsServiceClient
type DnsServiceServer ¶
DnsServiceServer is the server API for DnsService service.
type UnimplementedDnsServiceServer ¶
type UnimplementedDnsServiceServer struct {
}
UnimplementedDnsServiceServer can be embedded to have forward compatible implementations.