Documentation ¶
Index ¶
- func Connect(host, address string)
- func RegisterDNSServer(s *grpc.Server, srv DNSServer)
- type CheckReply
- func (*CheckReply) Descriptor() ([]byte, []int)
- func (m *CheckReply) GetIsExist() bool
- func (*CheckReply) ProtoMessage()
- func (m *CheckReply) Reset()
- func (m *CheckReply) String() string
- func (m *CheckReply) XXX_DiscardUnknown()
- func (m *CheckReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CheckReply) XXX_Merge(src proto.Message)
- func (m *CheckReply) XXX_Size() int
- func (m *CheckReply) XXX_Unmarshal(b []byte) error
- type DNSClient
- type DNSServer
- type DelRequest
- func (*DelRequest) Descriptor() ([]byte, []int)
- func (m *DelRequest) GetRecordId() string
- func (*DelRequest) ProtoMessage()
- func (m *DelRequest) Reset()
- func (m *DelRequest) String() string
- func (m *DelRequest) XXX_DiscardUnknown()
- func (m *DelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DelRequest) XXX_Merge(src proto.Message)
- func (m *DelRequest) XXX_Size() int
- func (m *DelRequest) XXX_Unmarshal(b []byte) error
- type DomainRecord
- func (*DomainRecord) Descriptor() ([]byte, []int)
- func (m *DomainRecord) GetDomainName() string
- func (m *DomainRecord) GetRR() string
- func (m *DomainRecord) GetRecordId() string
- func (m *DomainRecord) GetStatus() string
- func (m *DomainRecord) GetType() string
- func (m *DomainRecord) GetValue() string
- func (*DomainRecord) ProtoMessage()
- func (m *DomainRecord) Reset()
- func (m *DomainRecord) String() string
- func (m *DomainRecord) XXX_DiscardUnknown()
- func (m *DomainRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DomainRecord) XXX_Merge(src proto.Message)
- func (m *DomainRecord) XXX_Size() int
- func (m *DomainRecord) XXX_Unmarshal(b []byte) error
- type GetReply
- func (*GetReply) Descriptor() ([]byte, []int)
- func (m *GetReply) GetDomainRecord() []*DomainRecord
- func (m *GetReply) GetTotalCount() uint32
- func (*GetReply) ProtoMessage()
- func (m *GetReply) Reset()
- func (m *GetReply) String() string
- func (m *GetReply) XXX_DiscardUnknown()
- func (m *GetReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetReply) XXX_Merge(src proto.Message)
- func (m *GetReply) XXX_Size() int
- func (m *GetReply) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetDomainName() string
- func (m *GetRequest) GetPageNumber() string
- func (m *GetRequest) GetPageSize() string
- func (m *GetRequest) GetRR() string
- func (m *GetRequest) GetType() string
- func (m *GetRequest) GetValue() string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type NullReply
- func (*NullReply) Descriptor() ([]byte, []int)
- func (*NullReply) ProtoMessage()
- func (m *NullReply) Reset()
- func (m *NullReply) String() string
- func (m *NullReply) XXX_DiscardUnknown()
- func (m *NullReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NullReply) XXX_Merge(src proto.Message)
- func (m *NullReply) XXX_Size() int
- func (m *NullReply) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDNSServer ¶
Types ¶
type CheckReply ¶
type CheckReply struct { IsExist bool `protobuf:"varint,1,opt,name=IsExist,proto3" json:"IsExist,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func CheckDomainRecord ¶
func CheckDomainRecord(request *DomainRecord) (*CheckReply, error)
func (*CheckReply) Descriptor ¶
func (*CheckReply) Descriptor() ([]byte, []int)
func (*CheckReply) GetIsExist ¶
func (m *CheckReply) GetIsExist() bool
func (*CheckReply) ProtoMessage ¶
func (*CheckReply) ProtoMessage()
func (*CheckReply) Reset ¶
func (m *CheckReply) Reset()
func (*CheckReply) String ¶
func (m *CheckReply) String() string
func (*CheckReply) XXX_DiscardUnknown ¶
func (m *CheckReply) XXX_DiscardUnknown()
func (*CheckReply) XXX_Marshal ¶
func (m *CheckReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckReply) XXX_Merge ¶
func (dst *CheckReply) XXX_Merge(src proto.Message)
func (*CheckReply) XXX_Size ¶
func (m *CheckReply) XXX_Size() int
func (*CheckReply) XXX_Unmarshal ¶
func (m *CheckReply) XXX_Unmarshal(b []byte) error
type DNSClient ¶
type DNSClient interface { // 分页获取域名解析列表 GetDomainRecords(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error) // 批量添加域名解析 AddDomainRecord(ctx context.Context, in *DomainRecord, opts ...grpc.CallOption) (*DomainRecord, error) // 检查域名解析记录 CheckDomainRecord(ctx context.Context, in *DomainRecord, opts ...grpc.CallOption) (*CheckReply, error) // 删除域名解析 DeleteDomainRecord(ctx context.Context, in *DelRequest, opts ...grpc.CallOption) (*NullReply, error) // 修改域名解析 UpdateDomainRecord(ctx context.Context, in *DomainRecord, opts ...grpc.CallOption) (*NullReply, error) // 设置解析记录状态 SetDomainRecordStatus(ctx context.Context, in *DomainRecord, opts ...grpc.CallOption) (*NullReply, error) }
DNSClient is the client API for DNS service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDNSClient ¶
func NewDNSClient(cc *grpc.ClientConn) DNSClient
type DNSServer ¶
type DNSServer interface { // 分页获取域名解析列表 GetDomainRecords(context.Context, *GetRequest) (*GetReply, error) // 批量添加域名解析 AddDomainRecord(context.Context, *DomainRecord) (*DomainRecord, error) // 检查域名解析记录 CheckDomainRecord(context.Context, *DomainRecord) (*CheckReply, error) // 删除域名解析 DeleteDomainRecord(context.Context, *DelRequest) (*NullReply, error) // 修改域名解析 UpdateDomainRecord(context.Context, *DomainRecord) (*NullReply, error) // 设置解析记录状态 SetDomainRecordStatus(context.Context, *DomainRecord) (*NullReply, error) }
DNSServer is the server API for DNS service.
type DelRequest ¶
type DelRequest struct { RecordId string `protobuf:"bytes,1,opt,name=RecordId,proto3" json:"RecordId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DelRequest) Descriptor ¶
func (*DelRequest) Descriptor() ([]byte, []int)
func (*DelRequest) GetRecordId ¶
func (m *DelRequest) GetRecordId() string
func (*DelRequest) ProtoMessage ¶
func (*DelRequest) ProtoMessage()
func (*DelRequest) Reset ¶
func (m *DelRequest) Reset()
func (*DelRequest) String ¶
func (m *DelRequest) String() string
func (*DelRequest) XXX_DiscardUnknown ¶
func (m *DelRequest) XXX_DiscardUnknown()
func (*DelRequest) XXX_Marshal ¶
func (m *DelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelRequest) XXX_Merge ¶
func (dst *DelRequest) XXX_Merge(src proto.Message)
func (*DelRequest) XXX_Size ¶
func (m *DelRequest) XXX_Size() int
func (*DelRequest) XXX_Unmarshal ¶
func (m *DelRequest) XXX_Unmarshal(b []byte) error
type DomainRecord ¶
type DomainRecord struct { DomainName string `protobuf:"bytes,1,opt,name=DomainName,proto3" json:"DomainName,omitempty"` RecordId string `protobuf:"bytes,2,opt,name=RecordId,proto3" json:"RecordId,omitempty"` RR string `protobuf:"bytes,3,opt,name=RR,proto3" json:"RR,omitempty"` Type string `protobuf:"bytes,4,opt,name=Type,proto3" json:"Type,omitempty"` Value string `protobuf:"bytes,5,opt,name=Value,proto3" json:"Value,omitempty"` Status string `protobuf:"bytes,6,opt,name=Status,proto3" json:"Status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func AddDomainRecord ¶
func AddDomainRecord(record *DomainRecord) (*DomainRecord, error)
func (*DomainRecord) Descriptor ¶
func (*DomainRecord) Descriptor() ([]byte, []int)
func (*DomainRecord) GetDomainName ¶
func (m *DomainRecord) GetDomainName() string
func (*DomainRecord) GetRR ¶
func (m *DomainRecord) GetRR() string
func (*DomainRecord) GetRecordId ¶
func (m *DomainRecord) GetRecordId() string
func (*DomainRecord) GetStatus ¶
func (m *DomainRecord) GetStatus() string
func (*DomainRecord) GetType ¶
func (m *DomainRecord) GetType() string
func (*DomainRecord) GetValue ¶
func (m *DomainRecord) GetValue() string
func (*DomainRecord) ProtoMessage ¶
func (*DomainRecord) ProtoMessage()
func (*DomainRecord) Reset ¶
func (m *DomainRecord) Reset()
func (*DomainRecord) String ¶
func (m *DomainRecord) String() string
func (*DomainRecord) XXX_DiscardUnknown ¶
func (m *DomainRecord) XXX_DiscardUnknown()
func (*DomainRecord) XXX_Marshal ¶
func (m *DomainRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DomainRecord) XXX_Merge ¶
func (dst *DomainRecord) XXX_Merge(src proto.Message)
func (*DomainRecord) XXX_Size ¶
func (m *DomainRecord) XXX_Size() int
func (*DomainRecord) XXX_Unmarshal ¶
func (m *DomainRecord) XXX_Unmarshal(b []byte) error
type GetReply ¶
type GetReply struct { TotalCount uint32 `protobuf:"varint,1,opt,name=TotalCount,proto3" json:"TotalCount,omitempty"` DomainRecord []*DomainRecord `protobuf:"bytes,2,rep,name=domainRecord,proto3" json:"domainRecord,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func GetDomainRecords ¶
func GetDomainRecords(request *GetRequest) (*GetReply, error)
func (*GetReply) Descriptor ¶
func (*GetReply) GetDomainRecord ¶
func (m *GetReply) GetDomainRecord() []*DomainRecord
func (*GetReply) GetTotalCount ¶
func (*GetReply) ProtoMessage ¶
func (*GetReply) ProtoMessage()
func (*GetReply) XXX_DiscardUnknown ¶
func (m *GetReply) XXX_DiscardUnknown()
func (*GetReply) XXX_Marshal ¶
func (*GetReply) XXX_Unmarshal ¶
type GetRequest ¶
type GetRequest struct { DomainName string `protobuf:"bytes,1,opt,name=DomainName,proto3" json:"DomainName,omitempty"` PageNumber string `protobuf:"bytes,2,opt,name=PageNumber,proto3" json:"PageNumber,omitempty"` PageSize string `protobuf:"bytes,3,opt,name=PageSize,proto3" json:"PageSize,omitempty"` RR string `protobuf:"bytes,4,opt,name=RR,proto3" json:"RR,omitempty"` Value string `protobuf:"bytes,5,opt,name=Value,proto3" json:"Value,omitempty"` Type string `protobuf:"bytes,6,opt,name=Type,proto3" json:"Type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetDomainName ¶
func (m *GetRequest) GetDomainName() string
func (*GetRequest) GetPageNumber ¶
func (m *GetRequest) GetPageNumber() string
func (*GetRequest) GetPageSize ¶
func (m *GetRequest) GetPageSize() string
func (*GetRequest) GetRR ¶
func (m *GetRequest) GetRR() string
func (*GetRequest) GetType ¶
func (m *GetRequest) GetType() string
func (*GetRequest) GetValue ¶
func (m *GetRequest) GetValue() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (dst *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type NullReply ¶
type NullReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func DeleteGetDomainRecord ¶
func DeleteGetDomainRecord(request *DelRequest) (*NullReply, error)
func SetDomainRecordStatus ¶
func SetDomainRecordStatus(request *DomainRecord) (*NullReply, error)
func UpdateDomainRecord ¶
func UpdateDomainRecord(request *DomainRecord) (*NullReply, error)
func (*NullReply) Descriptor ¶
func (*NullReply) ProtoMessage ¶
func (*NullReply) ProtoMessage()
func (*NullReply) XXX_DiscardUnknown ¶
func (m *NullReply) XXX_DiscardUnknown()
func (*NullReply) XXX_Marshal ¶
func (*NullReply) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.