Documentation
¶
Index ¶
- Variables
- func NewDnsEndpoints() []*api.Endpoint
- func RegisterDnsHandler(s server.Server, hdlr DnsHandler, opts ...server.HandlerOption) error
- type Answer
- func (*Answer) Descriptor() ([]byte, []int)deprecated
- func (x *Answer) GetData() string
- func (x *Answer) GetName() string
- func (x *Answer) GetTTL() int32
- func (x *Answer) GetType() int32
- func (*Answer) ProtoMessage()
- func (x *Answer) ProtoReflect() protoreflect.Message
- func (x *Answer) Reset()
- func (x *Answer) String() string
- type DnsHandler
- type DnsService
- type Domain
- type QueryRequest
- func (*QueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRequest) GetName() string
- func (x *QueryRequest) GetType() string
- func (*QueryRequest) ProtoMessage()
- func (x *QueryRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRequest) Reset()
- func (x *QueryRequest) String() string
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryResponse) GetAD() bool
- func (x *QueryResponse) GetAnswer() []*Answer
- func (x *QueryResponse) GetCD() bool
- func (x *QueryResponse) GetProvider() string
- func (x *QueryResponse) GetQuestion() []*Question
- func (x *QueryResponse) GetRA() bool
- func (x *QueryResponse) GetRD() bool
- func (x *QueryResponse) GetStatus() int32
- func (x *QueryResponse) GetTC() bool
- func (*QueryResponse) ProtoMessage()
- func (x *QueryResponse) ProtoReflect() protoreflect.Message
- func (x *QueryResponse) Reset()
- func (x *QueryResponse) String() string
- type Question
- type WhoisRequest
- type WhoisResponse
- func (*WhoisResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WhoisResponse) GetAbuseEmail() string
- func (x *WhoisResponse) GetAbusePhone() string
- func (x *WhoisResponse) GetCreated() string
- func (x *WhoisResponse) GetDomain() string
- func (x *WhoisResponse) GetExpiry() string
- func (x *WhoisResponse) GetId() string
- func (x *WhoisResponse) GetNameservers() []string
- func (x *WhoisResponse) GetRegistrar() string
- func (x *WhoisResponse) GetRegistrarId() string
- func (x *WhoisResponse) GetRegistrarUrl() string
- func (x *WhoisResponse) GetStatus() []string
- func (x *WhoisResponse) GetUpdated() string
- func (x *WhoisResponse) GetWhoisServer() string
- func (*WhoisResponse) ProtoMessage()
- func (x *WhoisResponse) ProtoReflect() protoreflect.Message
- func (x *WhoisResponse) Reset()
- func (x *WhoisResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_dns_proto protoreflect.FileDescriptor
Functions ¶
func NewDnsEndpoints ¶
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) ProtoMessage ¶
func (*Answer) ProtoMessage()
func (*Answer) ProtoReflect ¶
func (x *Answer) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶ added in v1.4.1
func (*Domain) ProtoMessage()
func (*Domain) ProtoReflect ¶ added in v1.4.1
func (x *Domain) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Question) ProtoMessage()
func (*Question) ProtoReflect ¶
func (x *Question) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.