pb

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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) 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 v0.1.2

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDnsServiceClient

func NewDnsServiceClient(cc grpc.ClientConnInterface) DnsServiceClient

type DnsServiceServer

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

DnsServiceServer is the server API for DnsService service.

type UnimplementedDnsServiceServer

type UnimplementedDnsServiceServer struct {
}

UnimplementedDnsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedDnsServiceServer) Query

Jump to

Keyboard shortcuts

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