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 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
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
}
type DnsService ¶
type DnsService interface {
Query(ctx context.Context, in *QueryRequest, opts ...client.CallOption) (*QueryResponse, error)
}
func NewDnsService ¶
func NewDnsService(name string, c client.Client) DnsService
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
Click to show internal directories.
Click to hide internal directories.