Documentation ¶
Index ¶
- Variables
- func RegisterNameserverServer(s grpc.ServiceRegistrar, srv NameserverServer)
- type NameserverClient
- type NameserverCreateRecordReq
- func (*NameserverCreateRecordReq) Descriptor() ([]byte, []int)deprecated
- func (x *NameserverCreateRecordReq) GetOverWrite() bool
- func (x *NameserverCreateRecordReq) GetRecordKey() string
- func (x *NameserverCreateRecordReq) GetRecordTTL() int32
- func (x *NameserverCreateRecordReq) GetRecordType() string
- func (x *NameserverCreateRecordReq) GetRecordValue() string
- func (*NameserverCreateRecordReq) ProtoMessage()
- func (x *NameserverCreateRecordReq) ProtoReflect() protoreflect.Message
- func (x *NameserverCreateRecordReq) Reset()
- func (x *NameserverCreateRecordReq) String() string
- type NameserverCreateRecordResp
- type NameserverDeleteRecordReq
- func (*NameserverDeleteRecordReq) Descriptor() ([]byte, []int)deprecated
- func (x *NameserverDeleteRecordReq) GetRecordKey() string
- func (*NameserverDeleteRecordReq) ProtoMessage()
- func (x *NameserverDeleteRecordReq) ProtoReflect() protoreflect.Message
- func (x *NameserverDeleteRecordReq) Reset()
- func (x *NameserverDeleteRecordReq) String() string
- type NameserverDeleteRecordResp
- type NameserverGetRecordReq
- func (*NameserverGetRecordReq) Descriptor() ([]byte, []int)deprecated
- func (x *NameserverGetRecordReq) GetRecordKey() string
- func (*NameserverGetRecordReq) ProtoMessage()
- func (x *NameserverGetRecordReq) ProtoReflect() protoreflect.Message
- func (x *NameserverGetRecordReq) Reset()
- func (x *NameserverGetRecordReq) String() string
- type NameserverGetRecordResp
- func (*NameserverGetRecordResp) Descriptor() ([]byte, []int)deprecated
- func (x *NameserverGetRecordResp) GetRecordKey() string
- func (x *NameserverGetRecordResp) GetRecordValue() string
- func (*NameserverGetRecordResp) ProtoMessage()
- func (x *NameserverGetRecordResp) ProtoReflect() protoreflect.Message
- func (x *NameserverGetRecordResp) Reset()
- func (x *NameserverGetRecordResp) String() string
- type NameserverHealthReq
- type NameserverHealthResp
- func (*NameserverHealthResp) Descriptor() ([]byte, []int)deprecated
- func (x *NameserverHealthResp) GetStatus() bool
- func (*NameserverHealthResp) ProtoMessage()
- func (x *NameserverHealthResp) ProtoReflect() protoreflect.Message
- func (x *NameserverHealthResp) Reset()
- func (x *NameserverHealthResp) String() string
- type NameserverServer
- type UnimplementedNameserverServer
- func (UnimplementedNameserverServer) CreateRecord(context.Context, *NameserverCreateRecordReq) (*NameserverCreateRecordResp, error)
- func (UnimplementedNameserverServer) DeleteRecord(context.Context, *NameserverDeleteRecordReq) (*NameserverDeleteRecordResp, error)
- func (UnimplementedNameserverServer) GetRecord(context.Context, *NameserverGetRecordReq) (*NameserverGetRecordResp, error)
- func (UnimplementedNameserverServer) Status(context.Context, *NameserverHealthReq) (*NameserverHealthResp, error)
- type UnsafeNameserverServer
Constants ¶
This section is empty.
Variables ¶
var File_nameserver_proto protoreflect.FileDescriptor
var Nameserver_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.Nameserver", HandlerType: (*NameserverServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Status", Handler: _Nameserver_Status_Handler, }, { MethodName: "GetRecord", Handler: _Nameserver_GetRecord_Handler, }, { MethodName: "CreateRecord", Handler: _Nameserver_CreateRecord_Handler, }, { MethodName: "DeleteRecord", Handler: _Nameserver_DeleteRecord_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "nameserver.proto", }
Nameserver_ServiceDesc is the grpc.ServiceDesc for Nameserver service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNameserverServer ¶
func RegisterNameserverServer(s grpc.ServiceRegistrar, srv NameserverServer)
Types ¶
type NameserverClient ¶
type NameserverClient interface { Status(ctx context.Context, in *NameserverHealthReq, opts ...grpc.CallOption) (*NameserverHealthResp, error) GetRecord(ctx context.Context, in *NameserverGetRecordReq, opts ...grpc.CallOption) (*NameserverGetRecordResp, error) CreateRecord(ctx context.Context, in *NameserverCreateRecordReq, opts ...grpc.CallOption) (*NameserverCreateRecordResp, error) DeleteRecord(ctx context.Context, in *NameserverDeleteRecordReq, opts ...grpc.CallOption) (*NameserverDeleteRecordResp, error) }
NameserverClient is the client API for Nameserver service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNameserverClient ¶
func NewNameserverClient(cc grpc.ClientConnInterface) NameserverClient
type NameserverCreateRecordReq ¶
type NameserverCreateRecordReq struct { RecordType string `protobuf:"bytes,1,opt,name=RecordType,proto3" json:"RecordType,omitempty"` RecordKey string `protobuf:"bytes,2,opt,name=RecordKey,proto3" json:"RecordKey,omitempty"` RecordValue string `protobuf:"bytes,3,opt,name=RecordValue,proto3" json:"RecordValue,omitempty"` RecordTTL int32 `protobuf:"varint,4,opt,name=RecordTTL,proto3" json:"RecordTTL,omitempty"` OverWrite bool `protobuf:"varint,5,opt,name=OverWrite,proto3" json:"OverWrite,omitempty"` // contains filtered or unexported fields }
func (*NameserverCreateRecordReq) Descriptor
deprecated
func (*NameserverCreateRecordReq) Descriptor() ([]byte, []int)
Deprecated: Use NameserverCreateRecordReq.ProtoReflect.Descriptor instead.
func (*NameserverCreateRecordReq) GetOverWrite ¶
func (x *NameserverCreateRecordReq) GetOverWrite() bool
func (*NameserverCreateRecordReq) GetRecordKey ¶
func (x *NameserverCreateRecordReq) GetRecordKey() string
func (*NameserverCreateRecordReq) GetRecordTTL ¶
func (x *NameserverCreateRecordReq) GetRecordTTL() int32
func (*NameserverCreateRecordReq) GetRecordType ¶
func (x *NameserverCreateRecordReq) GetRecordType() string
func (*NameserverCreateRecordReq) GetRecordValue ¶
func (x *NameserverCreateRecordReq) GetRecordValue() string
func (*NameserverCreateRecordReq) ProtoMessage ¶
func (*NameserverCreateRecordReq) ProtoMessage()
func (*NameserverCreateRecordReq) ProtoReflect ¶
func (x *NameserverCreateRecordReq) ProtoReflect() protoreflect.Message
func (*NameserverCreateRecordReq) Reset ¶
func (x *NameserverCreateRecordReq) Reset()
func (*NameserverCreateRecordReq) String ¶
func (x *NameserverCreateRecordReq) String() string
type NameserverCreateRecordResp ¶
type NameserverCreateRecordResp struct {
// contains filtered or unexported fields
}
func (*NameserverCreateRecordResp) Descriptor
deprecated
func (*NameserverCreateRecordResp) Descriptor() ([]byte, []int)
Deprecated: Use NameserverCreateRecordResp.ProtoReflect.Descriptor instead.
func (*NameserverCreateRecordResp) ProtoMessage ¶
func (*NameserverCreateRecordResp) ProtoMessage()
func (*NameserverCreateRecordResp) ProtoReflect ¶
func (x *NameserverCreateRecordResp) ProtoReflect() protoreflect.Message
func (*NameserverCreateRecordResp) Reset ¶
func (x *NameserverCreateRecordResp) Reset()
func (*NameserverCreateRecordResp) String ¶
func (x *NameserverCreateRecordResp) String() string
type NameserverDeleteRecordReq ¶
type NameserverDeleteRecordReq struct { RecordKey string `protobuf:"bytes,2,opt,name=RecordKey,proto3" json:"RecordKey,omitempty"` // contains filtered or unexported fields }
func (*NameserverDeleteRecordReq) Descriptor
deprecated
func (*NameserverDeleteRecordReq) Descriptor() ([]byte, []int)
Deprecated: Use NameserverDeleteRecordReq.ProtoReflect.Descriptor instead.
func (*NameserverDeleteRecordReq) GetRecordKey ¶
func (x *NameserverDeleteRecordReq) GetRecordKey() string
func (*NameserverDeleteRecordReq) ProtoMessage ¶
func (*NameserverDeleteRecordReq) ProtoMessage()
func (*NameserverDeleteRecordReq) ProtoReflect ¶
func (x *NameserverDeleteRecordReq) ProtoReflect() protoreflect.Message
func (*NameserverDeleteRecordReq) Reset ¶
func (x *NameserverDeleteRecordReq) Reset()
func (*NameserverDeleteRecordReq) String ¶
func (x *NameserverDeleteRecordReq) String() string
type NameserverDeleteRecordResp ¶
type NameserverDeleteRecordResp struct {
// contains filtered or unexported fields
}
func (*NameserverDeleteRecordResp) Descriptor
deprecated
func (*NameserverDeleteRecordResp) Descriptor() ([]byte, []int)
Deprecated: Use NameserverDeleteRecordResp.ProtoReflect.Descriptor instead.
func (*NameserverDeleteRecordResp) ProtoMessage ¶
func (*NameserverDeleteRecordResp) ProtoMessage()
func (*NameserverDeleteRecordResp) ProtoReflect ¶
func (x *NameserverDeleteRecordResp) ProtoReflect() protoreflect.Message
func (*NameserverDeleteRecordResp) Reset ¶
func (x *NameserverDeleteRecordResp) Reset()
func (*NameserverDeleteRecordResp) String ¶
func (x *NameserverDeleteRecordResp) String() string
type NameserverGetRecordReq ¶
type NameserverGetRecordReq struct { RecordKey string `protobuf:"bytes,2,opt,name=RecordKey,proto3" json:"RecordKey,omitempty"` // contains filtered or unexported fields }
func (*NameserverGetRecordReq) Descriptor
deprecated
func (*NameserverGetRecordReq) Descriptor() ([]byte, []int)
Deprecated: Use NameserverGetRecordReq.ProtoReflect.Descriptor instead.
func (*NameserverGetRecordReq) GetRecordKey ¶
func (x *NameserverGetRecordReq) GetRecordKey() string
func (*NameserverGetRecordReq) ProtoMessage ¶
func (*NameserverGetRecordReq) ProtoMessage()
func (*NameserverGetRecordReq) ProtoReflect ¶
func (x *NameserverGetRecordReq) ProtoReflect() protoreflect.Message
func (*NameserverGetRecordReq) Reset ¶
func (x *NameserverGetRecordReq) Reset()
func (*NameserverGetRecordReq) String ¶
func (x *NameserverGetRecordReq) String() string
type NameserverGetRecordResp ¶
type NameserverGetRecordResp struct { RecordKey string `protobuf:"bytes,1,opt,name=RecordKey,proto3" json:"RecordKey,omitempty"` RecordValue string `protobuf:"bytes,2,opt,name=RecordValue,proto3" json:"RecordValue,omitempty"` // contains filtered or unexported fields }
func (*NameserverGetRecordResp) Descriptor
deprecated
func (*NameserverGetRecordResp) Descriptor() ([]byte, []int)
Deprecated: Use NameserverGetRecordResp.ProtoReflect.Descriptor instead.
func (*NameserverGetRecordResp) GetRecordKey ¶
func (x *NameserverGetRecordResp) GetRecordKey() string
func (*NameserverGetRecordResp) GetRecordValue ¶
func (x *NameserverGetRecordResp) GetRecordValue() string
func (*NameserverGetRecordResp) ProtoMessage ¶
func (*NameserverGetRecordResp) ProtoMessage()
func (*NameserverGetRecordResp) ProtoReflect ¶
func (x *NameserverGetRecordResp) ProtoReflect() protoreflect.Message
func (*NameserverGetRecordResp) Reset ¶
func (x *NameserverGetRecordResp) Reset()
func (*NameserverGetRecordResp) String ¶
func (x *NameserverGetRecordResp) String() string
type NameserverHealthReq ¶
type NameserverHealthReq struct {
// contains filtered or unexported fields
}
func (*NameserverHealthReq) Descriptor
deprecated
func (*NameserverHealthReq) Descriptor() ([]byte, []int)
Deprecated: Use NameserverHealthReq.ProtoReflect.Descriptor instead.
func (*NameserverHealthReq) ProtoMessage ¶
func (*NameserverHealthReq) ProtoMessage()
func (*NameserverHealthReq) ProtoReflect ¶
func (x *NameserverHealthReq) ProtoReflect() protoreflect.Message
func (*NameserverHealthReq) Reset ¶
func (x *NameserverHealthReq) Reset()
func (*NameserverHealthReq) String ¶
func (x *NameserverHealthReq) String() string
type NameserverHealthResp ¶
type NameserverHealthResp struct { Status bool `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*NameserverHealthResp) Descriptor
deprecated
func (*NameserverHealthResp) Descriptor() ([]byte, []int)
Deprecated: Use NameserverHealthResp.ProtoReflect.Descriptor instead.
func (*NameserverHealthResp) GetStatus ¶
func (x *NameserverHealthResp) GetStatus() bool
func (*NameserverHealthResp) ProtoMessage ¶
func (*NameserverHealthResp) ProtoMessage()
func (*NameserverHealthResp) ProtoReflect ¶
func (x *NameserverHealthResp) ProtoReflect() protoreflect.Message
func (*NameserverHealthResp) Reset ¶
func (x *NameserverHealthResp) Reset()
func (*NameserverHealthResp) String ¶
func (x *NameserverHealthResp) String() string
type NameserverServer ¶
type NameserverServer interface { Status(context.Context, *NameserverHealthReq) (*NameserverHealthResp, error) GetRecord(context.Context, *NameserverGetRecordReq) (*NameserverGetRecordResp, error) CreateRecord(context.Context, *NameserverCreateRecordReq) (*NameserverCreateRecordResp, error) DeleteRecord(context.Context, *NameserverDeleteRecordReq) (*NameserverDeleteRecordResp, error) // contains filtered or unexported methods }
NameserverServer is the server API for Nameserver service. All implementations must embed UnimplementedNameserverServer for forward compatibility
type UnimplementedNameserverServer ¶
type UnimplementedNameserverServer struct { }
UnimplementedNameserverServer must be embedded to have forward compatible implementations.
func (UnimplementedNameserverServer) CreateRecord ¶
func (UnimplementedNameserverServer) CreateRecord(context.Context, *NameserverCreateRecordReq) (*NameserverCreateRecordResp, error)
func (UnimplementedNameserverServer) DeleteRecord ¶
func (UnimplementedNameserverServer) DeleteRecord(context.Context, *NameserverDeleteRecordReq) (*NameserverDeleteRecordResp, error)
func (UnimplementedNameserverServer) GetRecord ¶
func (UnimplementedNameserverServer) GetRecord(context.Context, *NameserverGetRecordReq) (*NameserverGetRecordResp, error)
func (UnimplementedNameserverServer) Status ¶
func (UnimplementedNameserverServer) Status(context.Context, *NameserverHealthReq) (*NameserverHealthResp, error)
type UnsafeNameserverServer ¶
type UnsafeNameserverServer interface {
// contains filtered or unexported methods
}
UnsafeNameserverServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NameserverServer will result in compilation errors.