pb

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 218

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*DnsPacket) GetMsg

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

func (*DnsPacket) ProtoMessage

func (*DnsPacket) ProtoMessage()

func (*DnsPacket) Reset

func (m *DnsPacket) Reset()

func (*DnsPacket) String

func (m *DnsPacket) String() string

func (*DnsPacket) XXX_DiscardUnknown added in v1.4.0

func (m *DnsPacket) XXX_DiscardUnknown()

func (*DnsPacket) XXX_Marshal added in v1.4.0

func (m *DnsPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DnsPacket) XXX_Merge added in v1.4.0

func (m *DnsPacket) XXX_Merge(src proto.Message)

func (*DnsPacket) XXX_Size added in v1.4.0

func (m *DnsPacket) XXX_Size() int

func (*DnsPacket) XXX_Unmarshal added in v1.4.0

func (m *DnsPacket) XXX_Unmarshal(b []byte) error

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

type DnsServiceServer

type DnsServiceServer interface {
	Query(context.Context, *DnsPacket) (*DnsPacket, error)
}

DnsServiceServer is the server API for DnsService service.

Jump to

Keyboard shortcuts

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