Documentation ¶
Index ¶
- Variables
- func RegisterControllerServer(s grpc.ServiceRegistrar, srv ControllerServer)
- type ControllerClient
- type ControllerCreateRecordReq
- func (*ControllerCreateRecordReq) Descriptor() ([]byte, []int)deprecated
- func (x *ControllerCreateRecordReq) GetOverWrite() bool
- func (x *ControllerCreateRecordReq) GetRecordKey() string
- func (x *ControllerCreateRecordReq) GetRecordTTL() int32
- func (x *ControllerCreateRecordReq) GetRecordType() string
- func (x *ControllerCreateRecordReq) GetRecordValue() string
- func (*ControllerCreateRecordReq) ProtoMessage()
- func (x *ControllerCreateRecordReq) ProtoReflect() protoreflect.Message
- func (x *ControllerCreateRecordReq) Reset()
- func (x *ControllerCreateRecordReq) String() string
- type ControllerCreateRecordResp
- func (*ControllerCreateRecordResp) Descriptor() ([]byte, []int)deprecated
- func (x *ControllerCreateRecordResp) GetRecordUpdateURI() string
- func (*ControllerCreateRecordResp) ProtoMessage()
- func (x *ControllerCreateRecordResp) ProtoReflect() protoreflect.Message
- func (x *ControllerCreateRecordResp) Reset()
- func (x *ControllerCreateRecordResp) String() string
- type ControllerDeleteRecordReq
- func (*ControllerDeleteRecordReq) Descriptor() ([]byte, []int)deprecated
- func (x *ControllerDeleteRecordReq) GetRecordKey() string
- func (*ControllerDeleteRecordReq) ProtoMessage()
- func (x *ControllerDeleteRecordReq) ProtoReflect() protoreflect.Message
- func (x *ControllerDeleteRecordReq) Reset()
- func (x *ControllerDeleteRecordReq) String() string
- type ControllerDeleteRecordResp
- type ControllerGetRecordReq
- func (*ControllerGetRecordReq) Descriptor() ([]byte, []int)deprecated
- func (x *ControllerGetRecordReq) GetRecordKey() string
- func (*ControllerGetRecordReq) ProtoMessage()
- func (x *ControllerGetRecordReq) ProtoReflect() protoreflect.Message
- func (x *ControllerGetRecordReq) Reset()
- func (x *ControllerGetRecordReq) String() string
- type ControllerGetRecordResp
- func (*ControllerGetRecordResp) Descriptor() ([]byte, []int)deprecated
- func (x *ControllerGetRecordResp) GetRecordKey() string
- func (x *ControllerGetRecordResp) GetRecordValue() string
- func (*ControllerGetRecordResp) ProtoMessage()
- func (x *ControllerGetRecordResp) ProtoReflect() protoreflect.Message
- func (x *ControllerGetRecordResp) Reset()
- func (x *ControllerGetRecordResp) String() string
- type ControllerHealthReq
- type ControllerHealthResp
- func (*ControllerHealthResp) Descriptor() ([]byte, []int)deprecated
- func (x *ControllerHealthResp) GetStatus() bool
- func (*ControllerHealthResp) ProtoMessage()
- func (x *ControllerHealthResp) ProtoReflect() protoreflect.Message
- func (x *ControllerHealthResp) Reset()
- func (x *ControllerHealthResp) String() string
- type ControllerServer
- type UnimplementedControllerServer
- func (UnimplementedControllerServer) CreateRecord(context.Context, *ControllerCreateRecordReq) (*ControllerCreateRecordResp, error)
- func (UnimplementedControllerServer) DeleteRecord(context.Context, *ControllerDeleteRecordReq) (*ControllerDeleteRecordResp, error)
- func (UnimplementedControllerServer) GetRecord(context.Context, *ControllerGetRecordReq) (*ControllerGetRecordResp, error)
- func (UnimplementedControllerServer) Status(context.Context, *ControllerHealthReq) (*ControllerHealthResp, error)
- type UnsafeControllerServer
Constants ¶
This section is empty.
Variables ¶
var Controller_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.Controller", HandlerType: (*ControllerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Status", Handler: _Controller_Status_Handler, }, { MethodName: "GetRecord", Handler: _Controller_GetRecord_Handler, }, { MethodName: "CreateRecord", Handler: _Controller_CreateRecord_Handler, }, { MethodName: "DeleteRecord", Handler: _Controller_DeleteRecord_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "controller.proto", }
Controller_ServiceDesc is the grpc.ServiceDesc for Controller service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_controller_proto protoreflect.FileDescriptor
Functions ¶
func RegisterControllerServer ¶
func RegisterControllerServer(s grpc.ServiceRegistrar, srv ControllerServer)
Types ¶
type ControllerClient ¶
type ControllerClient interface { Status(ctx context.Context, in *ControllerHealthReq, opts ...grpc.CallOption) (*ControllerHealthResp, error) GetRecord(ctx context.Context, in *ControllerGetRecordReq, opts ...grpc.CallOption) (*ControllerGetRecordResp, error) CreateRecord(ctx context.Context, in *ControllerCreateRecordReq, opts ...grpc.CallOption) (*ControllerCreateRecordResp, error) DeleteRecord(ctx context.Context, in *ControllerDeleteRecordReq, opts ...grpc.CallOption) (*ControllerDeleteRecordResp, error) }
ControllerClient is the client API for Controller 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 NewControllerClient ¶
func NewControllerClient(cc grpc.ClientConnInterface) ControllerClient
type ControllerCreateRecordReq ¶
type ControllerCreateRecordReq 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 (*ControllerCreateRecordReq) Descriptor
deprecated
func (*ControllerCreateRecordReq) Descriptor() ([]byte, []int)
Deprecated: Use ControllerCreateRecordReq.ProtoReflect.Descriptor instead.
func (*ControllerCreateRecordReq) GetOverWrite ¶
func (x *ControllerCreateRecordReq) GetOverWrite() bool
func (*ControllerCreateRecordReq) GetRecordKey ¶
func (x *ControllerCreateRecordReq) GetRecordKey() string
func (*ControllerCreateRecordReq) GetRecordTTL ¶
func (x *ControllerCreateRecordReq) GetRecordTTL() int32
func (*ControllerCreateRecordReq) GetRecordType ¶
func (x *ControllerCreateRecordReq) GetRecordType() string
func (*ControllerCreateRecordReq) GetRecordValue ¶
func (x *ControllerCreateRecordReq) GetRecordValue() string
func (*ControllerCreateRecordReq) ProtoMessage ¶
func (*ControllerCreateRecordReq) ProtoMessage()
func (*ControllerCreateRecordReq) ProtoReflect ¶
func (x *ControllerCreateRecordReq) ProtoReflect() protoreflect.Message
func (*ControllerCreateRecordReq) Reset ¶
func (x *ControllerCreateRecordReq) Reset()
func (*ControllerCreateRecordReq) String ¶
func (x *ControllerCreateRecordReq) String() string
type ControllerCreateRecordResp ¶
type ControllerCreateRecordResp struct { RecordUpdateURI string `protobuf:"bytes,1,opt,name=RecordUpdateURI,proto3" json:"RecordUpdateURI,omitempty"` // contains filtered or unexported fields }
func (*ControllerCreateRecordResp) Descriptor
deprecated
func (*ControllerCreateRecordResp) Descriptor() ([]byte, []int)
Deprecated: Use ControllerCreateRecordResp.ProtoReflect.Descriptor instead.
func (*ControllerCreateRecordResp) GetRecordUpdateURI ¶
func (x *ControllerCreateRecordResp) GetRecordUpdateURI() string
func (*ControllerCreateRecordResp) ProtoMessage ¶
func (*ControllerCreateRecordResp) ProtoMessage()
func (*ControllerCreateRecordResp) ProtoReflect ¶
func (x *ControllerCreateRecordResp) ProtoReflect() protoreflect.Message
func (*ControllerCreateRecordResp) Reset ¶
func (x *ControllerCreateRecordResp) Reset()
func (*ControllerCreateRecordResp) String ¶
func (x *ControllerCreateRecordResp) String() string
type ControllerDeleteRecordReq ¶
type ControllerDeleteRecordReq struct { RecordKey string `protobuf:"bytes,2,opt,name=RecordKey,proto3" json:"RecordKey,omitempty"` // contains filtered or unexported fields }
func (*ControllerDeleteRecordReq) Descriptor
deprecated
func (*ControllerDeleteRecordReq) Descriptor() ([]byte, []int)
Deprecated: Use ControllerDeleteRecordReq.ProtoReflect.Descriptor instead.
func (*ControllerDeleteRecordReq) GetRecordKey ¶
func (x *ControllerDeleteRecordReq) GetRecordKey() string
func (*ControllerDeleteRecordReq) ProtoMessage ¶
func (*ControllerDeleteRecordReq) ProtoMessage()
func (*ControllerDeleteRecordReq) ProtoReflect ¶
func (x *ControllerDeleteRecordReq) ProtoReflect() protoreflect.Message
func (*ControllerDeleteRecordReq) Reset ¶
func (x *ControllerDeleteRecordReq) Reset()
func (*ControllerDeleteRecordReq) String ¶
func (x *ControllerDeleteRecordReq) String() string
type ControllerDeleteRecordResp ¶
type ControllerDeleteRecordResp struct {
// contains filtered or unexported fields
}
func (*ControllerDeleteRecordResp) Descriptor
deprecated
func (*ControllerDeleteRecordResp) Descriptor() ([]byte, []int)
Deprecated: Use ControllerDeleteRecordResp.ProtoReflect.Descriptor instead.
func (*ControllerDeleteRecordResp) ProtoMessage ¶
func (*ControllerDeleteRecordResp) ProtoMessage()
func (*ControllerDeleteRecordResp) ProtoReflect ¶
func (x *ControllerDeleteRecordResp) ProtoReflect() protoreflect.Message
func (*ControllerDeleteRecordResp) Reset ¶
func (x *ControllerDeleteRecordResp) Reset()
func (*ControllerDeleteRecordResp) String ¶
func (x *ControllerDeleteRecordResp) String() string
type ControllerGetRecordReq ¶
type ControllerGetRecordReq struct { RecordKey string `protobuf:"bytes,2,opt,name=RecordKey,proto3" json:"RecordKey,omitempty"` // contains filtered or unexported fields }
func (*ControllerGetRecordReq) Descriptor
deprecated
func (*ControllerGetRecordReq) Descriptor() ([]byte, []int)
Deprecated: Use ControllerGetRecordReq.ProtoReflect.Descriptor instead.
func (*ControllerGetRecordReq) GetRecordKey ¶
func (x *ControllerGetRecordReq) GetRecordKey() string
func (*ControllerGetRecordReq) ProtoMessage ¶
func (*ControllerGetRecordReq) ProtoMessage()
func (*ControllerGetRecordReq) ProtoReflect ¶
func (x *ControllerGetRecordReq) ProtoReflect() protoreflect.Message
func (*ControllerGetRecordReq) Reset ¶
func (x *ControllerGetRecordReq) Reset()
func (*ControllerGetRecordReq) String ¶
func (x *ControllerGetRecordReq) String() string
type ControllerGetRecordResp ¶
type ControllerGetRecordResp 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 (*ControllerGetRecordResp) Descriptor
deprecated
func (*ControllerGetRecordResp) Descriptor() ([]byte, []int)
Deprecated: Use ControllerGetRecordResp.ProtoReflect.Descriptor instead.
func (*ControllerGetRecordResp) GetRecordKey ¶
func (x *ControllerGetRecordResp) GetRecordKey() string
func (*ControllerGetRecordResp) GetRecordValue ¶
func (x *ControllerGetRecordResp) GetRecordValue() string
func (*ControllerGetRecordResp) ProtoMessage ¶
func (*ControllerGetRecordResp) ProtoMessage()
func (*ControllerGetRecordResp) ProtoReflect ¶
func (x *ControllerGetRecordResp) ProtoReflect() protoreflect.Message
func (*ControllerGetRecordResp) Reset ¶
func (x *ControllerGetRecordResp) Reset()
func (*ControllerGetRecordResp) String ¶
func (x *ControllerGetRecordResp) String() string
type ControllerHealthReq ¶
type ControllerHealthReq struct {
// contains filtered or unexported fields
}
func (*ControllerHealthReq) Descriptor
deprecated
func (*ControllerHealthReq) Descriptor() ([]byte, []int)
Deprecated: Use ControllerHealthReq.ProtoReflect.Descriptor instead.
func (*ControllerHealthReq) ProtoMessage ¶
func (*ControllerHealthReq) ProtoMessage()
func (*ControllerHealthReq) ProtoReflect ¶
func (x *ControllerHealthReq) ProtoReflect() protoreflect.Message
func (*ControllerHealthReq) Reset ¶
func (x *ControllerHealthReq) Reset()
func (*ControllerHealthReq) String ¶
func (x *ControllerHealthReq) String() string
type ControllerHealthResp ¶
type ControllerHealthResp struct { Status bool `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*ControllerHealthResp) Descriptor
deprecated
func (*ControllerHealthResp) Descriptor() ([]byte, []int)
Deprecated: Use ControllerHealthResp.ProtoReflect.Descriptor instead.
func (*ControllerHealthResp) GetStatus ¶
func (x *ControllerHealthResp) GetStatus() bool
func (*ControllerHealthResp) ProtoMessage ¶
func (*ControllerHealthResp) ProtoMessage()
func (*ControllerHealthResp) ProtoReflect ¶
func (x *ControllerHealthResp) ProtoReflect() protoreflect.Message
func (*ControllerHealthResp) Reset ¶
func (x *ControllerHealthResp) Reset()
func (*ControllerHealthResp) String ¶
func (x *ControllerHealthResp) String() string
type ControllerServer ¶
type ControllerServer interface { Status(context.Context, *ControllerHealthReq) (*ControllerHealthResp, error) GetRecord(context.Context, *ControllerGetRecordReq) (*ControllerGetRecordResp, error) CreateRecord(context.Context, *ControllerCreateRecordReq) (*ControllerCreateRecordResp, error) DeleteRecord(context.Context, *ControllerDeleteRecordReq) (*ControllerDeleteRecordResp, error) // contains filtered or unexported methods }
ControllerServer is the server API for Controller service. All implementations must embed UnimplementedControllerServer for forward compatibility
type UnimplementedControllerServer ¶
type UnimplementedControllerServer struct { }
UnimplementedControllerServer must be embedded to have forward compatible implementations.
func (UnimplementedControllerServer) CreateRecord ¶
func (UnimplementedControllerServer) CreateRecord(context.Context, *ControllerCreateRecordReq) (*ControllerCreateRecordResp, error)
func (UnimplementedControllerServer) DeleteRecord ¶
func (UnimplementedControllerServer) DeleteRecord(context.Context, *ControllerDeleteRecordReq) (*ControllerDeleteRecordResp, error)
func (UnimplementedControllerServer) GetRecord ¶
func (UnimplementedControllerServer) GetRecord(context.Context, *ControllerGetRecordReq) (*ControllerGetRecordResp, error)
func (UnimplementedControllerServer) Status ¶
func (UnimplementedControllerServer) Status(context.Context, *ControllerHealthReq) (*ControllerHealthResp, error)
type UnsafeControllerServer ¶
type UnsafeControllerServer interface {
// contains filtered or unexported methods
}
UnsafeControllerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ControllerServer will result in compilation errors.