Documentation ¶
Index ¶
- func RegisterDnsServiceServer(s *grpc.Server, srv DnsServiceServer)
- type DnsPacket
- func (*DnsPacket) Descriptor() ([]byte, []int)
- func (m *DnsPacket) GetMsg() []byte
- func (*DnsPacket) ProtoMessage()
- func (m *DnsPacket) Reset()
- func (m *DnsPacket) String() string
- func (m *DnsPacket) XXX_DiscardUnknown()
- func (m *DnsPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DnsPacket) XXX_Merge(src proto.Message)
- func (m *DnsPacket) XXX_Size() int
- func (m *DnsPacket) XXX_Unmarshal(b []byte) error
- type DnsServiceClient
- type DnsServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DnsPacket) Descriptor ¶
func (*DnsPacket) ProtoMessage ¶
func (*DnsPacket) ProtoMessage()
func (*DnsPacket) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *DnsPacket) XXX_DiscardUnknown()
func (*DnsPacket) XXX_Marshal ¶ added in v1.4.0
func (*DnsPacket) XXX_Unmarshal ¶ added in v1.4.0
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.ClientConn) DnsServiceClient
Click to show internal directories.
Click to hide internal directories.