dns

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_transport_internet_headers_dns_config_proto protoreflect.FileDescriptor

Functions

func NewDNS

func NewDNS(ctx context.Context, config interface{}) (interface{}, error)

NewDNS returns a new DNS instance based on given config.

Types

type Config

type Config struct {
	Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetDomain

func (x *Config) GetDomain() string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type DNS

type DNS struct {
	// contains filtered or unexported fields
}

func (DNS) Serialize

func (d DNS) Serialize(b []byte)

Serialize implements PacketHeader.

func (DNS) Size

func (d DNS) Size() int32

Jump to

Keyboard shortcuts

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