dns

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 11 Imported by: ? modules, 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

View Source
var File_proto_dns_proto protoreflect.FileDescriptor

Functions

func NewDnsEndpoints

func NewDnsEndpoints() []*api.Endpoint

func RegisterDnsHandler

func RegisterDnsHandler(s server.Server, hdlr DnsHandler, opts ...server.HandlerOption) error

Types

type Answer

type Answer struct {

	// name resolved
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// type of record
	Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
	// time to live
	TTL int32 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
	// the answer
	Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Answer) Descriptor deprecated

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

Deprecated: Use Answer.ProtoReflect.Descriptor instead.

func (*Answer) GetData

func (x *Answer) GetData() string

func (*Answer) GetName

func (x *Answer) GetName() string

func (*Answer) GetTTL

func (x *Answer) GetTTL() int32

func (*Answer) GetType

func (x *Answer) GetType() int32

func (*Answer) ProtoMessage

func (*Answer) ProtoMessage()

func (*Answer) ProtoReflect

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

func (*Answer) Reset

func (x *Answer) Reset()

func (*Answer) String

func (x *Answer) String() string

type DnsHandler

type DnsHandler interface {
	Query(context.Context, *QueryRequest, *QueryResponse) error
	Whois(context.Context, *WhoisRequest, *WhoisResponse) error
}

type DnsService

type DnsService interface {
	Query(ctx context.Context, in *QueryRequest, opts ...client.CallOption) (*QueryResponse, error)
	Whois(ctx context.Context, in *WhoisRequest, opts ...client.CallOption) (*WhoisResponse, error)
}

func NewDnsService

func NewDnsService(name string, c client.Client) DnsService

type Domain added in v1.4.1

type Domain struct {

	// domain id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Domain) Descriptor deprecated added in v1.4.1

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

Deprecated: Use Domain.ProtoReflect.Descriptor instead.

func (*Domain) GetId added in v1.4.1

func (x *Domain) GetId() string

func (*Domain) ProtoMessage added in v1.4.1

func (*Domain) ProtoMessage()

func (*Domain) ProtoReflect added in v1.4.1

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

func (*Domain) Reset added in v1.4.1

func (x *Domain) Reset()

func (*Domain) String added in v1.4.1

func (x *Domain) String() string

type QueryRequest

type QueryRequest struct {

	// name to resolve
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// type of query e.g A, AAAA, MX, SRV
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Query an addresss

func (*QueryRequest) Descriptor deprecated

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

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetName

func (x *QueryRequest) GetName() string

func (*QueryRequest) GetType

func (x *QueryRequest) GetType() string

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect

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

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) String

func (x *QueryRequest) String() string

type QueryResponse

type QueryResponse struct {
	Status   int32       `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	TC       bool        `protobuf:"varint,2,opt,name=TC,proto3" json:"TC,omitempty"`
	RD       bool        `protobuf:"varint,3,opt,name=RD,proto3" json:"RD,omitempty"`
	RA       bool        `protobuf:"varint,4,opt,name=RA,proto3" json:"RA,omitempty"`
	AD       bool        `protobuf:"varint,5,opt,name=AD,proto3" json:"AD,omitempty"`
	CD       bool        `protobuf:"varint,6,opt,name=CD,proto3" json:"CD,omitempty"`
	Question []*Question `protobuf:"bytes,7,rep,name=question,proto3" json:"question,omitempty"`
	Answer   []*Answer   `protobuf:"bytes,8,rep,name=answer,proto3" json:"answer,omitempty"`
	Provider string      `protobuf:"bytes,9,opt,name=provider,proto3" json:"provider,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryResponse) Descriptor deprecated

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

Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.

func (*QueryResponse) GetAD

func (x *QueryResponse) GetAD() bool

func (*QueryResponse) GetAnswer

func (x *QueryResponse) GetAnswer() []*Answer

func (*QueryResponse) GetCD

func (x *QueryResponse) GetCD() bool

func (*QueryResponse) GetProvider

func (x *QueryResponse) GetProvider() string

func (*QueryResponse) GetQuestion

func (x *QueryResponse) GetQuestion() []*Question

func (*QueryResponse) GetRA

func (x *QueryResponse) GetRA() bool

func (*QueryResponse) GetRD

func (x *QueryResponse) GetRD() bool

func (*QueryResponse) GetStatus

func (x *QueryResponse) GetStatus() int32

func (*QueryResponse) GetTC

func (x *QueryResponse) GetTC() bool

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) ProtoReflect

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

func (*QueryResponse) Reset

func (x *QueryResponse) Reset()

func (*QueryResponse) String

func (x *QueryResponse) String() string

type Question

type Question struct {

	// name to query
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// type of record
	Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Question) Descriptor deprecated

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

Deprecated: Use Question.ProtoReflect.Descriptor instead.

func (*Question) GetName

func (x *Question) GetName() string

func (*Question) GetType

func (x *Question) GetType() int32

func (*Question) ProtoMessage

func (*Question) ProtoMessage()

func (*Question) ProtoReflect

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

func (*Question) Reset

func (x *Question) Reset()

func (*Question) String

func (x *Question) String() string

type WhoisRequest added in v1.4.1

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

Check who owns a domain

func (*WhoisRequest) Descriptor deprecated added in v1.4.1

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

Deprecated: Use WhoisRequest.ProtoReflect.Descriptor instead.

func (*WhoisRequest) GetDomain added in v1.4.1

func (x *WhoisRequest) GetDomain() string

func (*WhoisRequest) ProtoMessage added in v1.4.1

func (*WhoisRequest) ProtoMessage()

func (*WhoisRequest) ProtoReflect added in v1.4.1

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

func (*WhoisRequest) Reset added in v1.4.1

func (x *WhoisRequest) Reset()

func (*WhoisRequest) String added in v1.4.1

func (x *WhoisRequest) String() string

type WhoisResponse added in v1.4.1

type WhoisResponse struct {

	// domain id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// domain name
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// whois server
	WhoisServer string `protobuf:"bytes,3,opt,name=whois_server,json=whoisServer,proto3" json:"whois_server,omitempty"`
	// registrar
	RegistrarUrl string `protobuf:"bytes,4,opt,name=registrar_url,json=registrarUrl,proto3" json:"registrar_url,omitempty"`
	// time of creation
	Created string `protobuf:"bytes,5,opt,name=created,proto3" json:"created,omitempty"`
	// time of update
	Updated string `protobuf:"bytes,6,opt,name=updated,proto3" json:"updated,omitempty"`
	// time of expiry
	Expiry string `protobuf:"bytes,7,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// the registrar
	Registrar string `protobuf:"bytes,8,opt,name=registrar,proto3" json:"registrar,omitempty"`
	// the registrar iana id
	RegistrarId string `protobuf:"bytes,9,opt,name=registrar_id,json=registrarId,proto3" json:"registrar_id,omitempty"`
	// abuse email
	AbuseEmail string `protobuf:"bytes,10,opt,name=abuse_email,json=abuseEmail,proto3" json:"abuse_email,omitempty"`
	// abuse phone
	AbusePhone string `protobuf:"bytes,11,opt,name=abuse_phone,json=abusePhone,proto3" json:"abuse_phone,omitempty"`
	// status of domain
	Status []string `protobuf:"bytes,12,rep,name=status,proto3" json:"status,omitempty"`
	// nameservers
	Nameservers []string `protobuf:"bytes,13,rep,name=nameservers,proto3" json:"nameservers,omitempty"`
	// contains filtered or unexported fields
}

func (*WhoisResponse) Descriptor deprecated added in v1.4.1

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

Deprecated: Use WhoisResponse.ProtoReflect.Descriptor instead.

func (*WhoisResponse) GetAbuseEmail added in v1.4.1

func (x *WhoisResponse) GetAbuseEmail() string

func (*WhoisResponse) GetAbusePhone added in v1.4.1

func (x *WhoisResponse) GetAbusePhone() string

func (*WhoisResponse) GetCreated added in v1.4.1

func (x *WhoisResponse) GetCreated() string

func (*WhoisResponse) GetDomain added in v1.4.1

func (x *WhoisResponse) GetDomain() string

func (*WhoisResponse) GetExpiry added in v1.4.1

func (x *WhoisResponse) GetExpiry() string

func (*WhoisResponse) GetId added in v1.4.1

func (x *WhoisResponse) GetId() string

func (*WhoisResponse) GetNameservers added in v1.4.1

func (x *WhoisResponse) GetNameservers() []string

func (*WhoisResponse) GetRegistrar added in v1.4.1

func (x *WhoisResponse) GetRegistrar() string

func (*WhoisResponse) GetRegistrarId added in v1.4.1

func (x *WhoisResponse) GetRegistrarId() string

func (*WhoisResponse) GetRegistrarUrl added in v1.4.1

func (x *WhoisResponse) GetRegistrarUrl() string

func (*WhoisResponse) GetStatus added in v1.4.1

func (x *WhoisResponse) GetStatus() []string

func (*WhoisResponse) GetUpdated added in v1.4.1

func (x *WhoisResponse) GetUpdated() string

func (*WhoisResponse) GetWhoisServer added in v1.4.1

func (x *WhoisResponse) GetWhoisServer() string

func (*WhoisResponse) ProtoMessage added in v1.4.1

func (*WhoisResponse) ProtoMessage()

func (*WhoisResponse) ProtoReflect added in v1.4.1

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

func (*WhoisResponse) Reset added in v1.4.1

func (x *WhoisResponse) Reset()

func (*WhoisResponse) String added in v1.4.1

func (x *WhoisResponse) String() string

Jump to

Keyboard shortcuts

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