Documentation
¶
Index ¶
- Variables
- func RegisterFlyDBServiceServer(s grpc.ServiceRegistrar, srv FlyDBServiceServer)
- type DelRequest
- type DelResponse
- type FlyDBServiceClient
- type FlyDBServiceServer
- type GetRequest
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetBoolValue() bool
- func (x *GetResponse) GetBytesValue() []byte
- func (x *GetResponse) GetFloat32Value() float32
- func (x *GetResponse) GetFloat64Value() float64
- func (x *GetResponse) GetInt32Value() int32
- func (x *GetResponse) GetInt64Value() int64
- func (x *GetResponse) GetStringValue() string
- func (m *GetResponse) GetValue() isGetResponse_Value
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- type GetResponse_BoolValue
- type GetResponse_BytesValue
- type GetResponse_Float32Value
- type GetResponse_Float64Value
- type GetResponse_Int32Value
- type GetResponse_Int64Value
- type GetResponse_StringValue
- type SetRequest
- func (*SetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetRequest) GetBoolValue() bool
- func (x *SetRequest) GetBytesValue() []byte
- func (x *SetRequest) GetExpire() int64
- func (x *SetRequest) GetFloat32Value() float32
- func (x *SetRequest) GetFloat64Value() float64
- func (x *SetRequest) GetInt32Value() int32
- func (x *SetRequest) GetInt64Value() int64
- func (x *SetRequest) GetKey() string
- func (x *SetRequest) GetStringValue() string
- func (m *SetRequest) GetValue() isSetRequest_Value
- func (*SetRequest) ProtoMessage()
- func (x *SetRequest) ProtoReflect() protoreflect.Message
- func (x *SetRequest) Reset()
- func (x *SetRequest) String() string
- type SetRequest_BoolValue
- type SetRequest_BytesValue
- type SetRequest_Float32Value
- type SetRequest_Float64Value
- type SetRequest_Int32Value
- type SetRequest_Int64Value
- type SetRequest_StringValue
- type SetResponse
- type UnimplementedFlyDBServiceServer
- type UnsafeFlyDBServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_lib_proto_dbs_db_proto protoreflect.FileDescriptor
var FlyDBService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dbs.FlyDBService", HandlerType: (*FlyDBServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _FlyDBService_Get_Handler, }, { MethodName: "Put", Handler: _FlyDBService_Put_Handler, }, { MethodName: "Del", Handler: _FlyDBService_Del_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "lib/proto/dbs/db.proto", }
FlyDBService_ServiceDesc is the grpc.ServiceDesc for FlyDBService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFlyDBServiceServer ¶
func RegisterFlyDBServiceServer(s grpc.ServiceRegistrar, srv FlyDBServiceServer)
Types ¶
type DelRequest ¶
type DelRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DelRequest) Descriptor
deprecated
func (*DelRequest) Descriptor() ([]byte, []int)
Deprecated: Use DelRequest.ProtoReflect.Descriptor instead.
func (*DelRequest) GetKey ¶
func (x *DelRequest) GetKey() string
func (*DelRequest) ProtoMessage ¶
func (*DelRequest) ProtoMessage()
func (*DelRequest) ProtoReflect ¶
func (x *DelRequest) ProtoReflect() protoreflect.Message
func (*DelRequest) Reset ¶
func (x *DelRequest) Reset()
func (*DelRequest) String ¶
func (x *DelRequest) String() string
type DelResponse ¶
type DelResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*DelResponse) Descriptor
deprecated
func (*DelResponse) Descriptor() ([]byte, []int)
Deprecated: Use DelResponse.ProtoReflect.Descriptor instead.
func (*DelResponse) GetOk ¶
func (x *DelResponse) GetOk() bool
func (*DelResponse) ProtoMessage ¶
func (*DelResponse) ProtoMessage()
func (*DelResponse) ProtoReflect ¶
func (x *DelResponse) ProtoReflect() protoreflect.Message
func (*DelResponse) Reset ¶
func (x *DelResponse) Reset()
func (*DelResponse) String ¶
func (x *DelResponse) String() string
type FlyDBServiceClient ¶
type FlyDBServiceClient interface { Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) Put(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) Del(ctx context.Context, in *DelRequest, opts ...grpc.CallOption) (*DelResponse, error) }
FlyDBServiceClient is the client API for FlyDBService 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 NewFlyDBServiceClient ¶
func NewFlyDBServiceClient(cc grpc.ClientConnInterface) FlyDBServiceClient
type FlyDBServiceServer ¶
type FlyDBServiceServer interface { Get(context.Context, *GetRequest) (*GetResponse, error) Put(context.Context, *SetRequest) (*SetResponse, error) Del(context.Context, *DelRequest) (*DelResponse, error) // contains filtered or unexported methods }
FlyDBServiceServer is the server API for FlyDBService service. All implementations must embed UnimplementedFlyDBServiceServer for forward compatibility
type GetRequest ¶
type GetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetKey ¶
func (x *GetRequest) GetKey() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { // Types that are assignable to Value: // *GetResponse_StringValue // *GetResponse_Int32Value // *GetResponse_Int64Value // *GetResponse_Float32Value // *GetResponse_Float64Value // *GetResponse_BoolValue // *GetResponse_BytesValue Value isGetResponse_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetBoolValue ¶ added in v1.0.7
func (x *GetResponse) GetBoolValue() bool
func (*GetResponse) GetBytesValue ¶ added in v1.0.7
func (x *GetResponse) GetBytesValue() []byte
func (*GetResponse) GetFloat32Value ¶ added in v1.0.7
func (x *GetResponse) GetFloat32Value() float32
func (*GetResponse) GetFloat64Value ¶ added in v1.0.7
func (x *GetResponse) GetFloat64Value() float64
func (*GetResponse) GetInt32Value ¶ added in v1.0.7
func (x *GetResponse) GetInt32Value() int32
func (*GetResponse) GetInt64Value ¶ added in v1.0.7
func (x *GetResponse) GetInt64Value() int64
func (*GetResponse) GetStringValue ¶ added in v1.0.7
func (x *GetResponse) GetStringValue() string
func (*GetResponse) GetValue ¶
func (m *GetResponse) GetValue() isGetResponse_Value
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type GetResponse_BoolValue ¶ added in v1.0.7
type GetResponse_BoolValue struct {
BoolValue bool `protobuf:"varint,6,opt,name=BoolValue,proto3,oneof"`
}
type GetResponse_BytesValue ¶ added in v1.0.7
type GetResponse_BytesValue struct {
BytesValue []byte `protobuf:"bytes,7,opt,name=BytesValue,proto3,oneof"`
}
type GetResponse_Float32Value ¶ added in v1.0.7
type GetResponse_Float32Value struct {
Float32Value float32 `protobuf:"fixed32,4,opt,name=Float32Value,proto3,oneof"`
}
type GetResponse_Float64Value ¶ added in v1.0.7
type GetResponse_Float64Value struct {
Float64Value float64 `protobuf:"fixed64,5,opt,name=Float64Value,proto3,oneof"`
}
type GetResponse_Int32Value ¶ added in v1.0.7
type GetResponse_Int32Value struct {
Int32Value int32 `protobuf:"varint,2,opt,name=Int32Value,proto3,oneof"`
}
type GetResponse_Int64Value ¶ added in v1.0.7
type GetResponse_Int64Value struct {
Int64Value int64 `protobuf:"varint,3,opt,name=Int64Value,proto3,oneof"`
}
type GetResponse_StringValue ¶ added in v1.0.7
type GetResponse_StringValue struct {
StringValue string `protobuf:"bytes,1,opt,name=StringValue,proto3,oneof"`
}
type SetRequest ¶ added in v1.0.7
type SetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Types that are assignable to Value: // *SetRequest_StringValue // *SetRequest_Int32Value // *SetRequest_Int64Value // *SetRequest_Float32Value // *SetRequest_Float64Value // *SetRequest_BoolValue // *SetRequest_BytesValue Value isSetRequest_Value `protobuf_oneof:"value"` Expire int64 `protobuf:"varint,9,opt,name=expire,proto3" json:"expire,omitempty"` // contains filtered or unexported fields }
func (*SetRequest) Descriptor
deprecated
added in
v1.0.7
func (*SetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRequest.ProtoReflect.Descriptor instead.
func (*SetRequest) GetBoolValue ¶ added in v1.0.7
func (x *SetRequest) GetBoolValue() bool
func (*SetRequest) GetBytesValue ¶ added in v1.0.7
func (x *SetRequest) GetBytesValue() []byte
func (*SetRequest) GetExpire ¶ added in v1.0.7
func (x *SetRequest) GetExpire() int64
func (*SetRequest) GetFloat32Value ¶ added in v1.0.7
func (x *SetRequest) GetFloat32Value() float32
func (*SetRequest) GetFloat64Value ¶ added in v1.0.7
func (x *SetRequest) GetFloat64Value() float64
func (*SetRequest) GetInt32Value ¶ added in v1.0.7
func (x *SetRequest) GetInt32Value() int32
func (*SetRequest) GetInt64Value ¶ added in v1.0.7
func (x *SetRequest) GetInt64Value() int64
func (*SetRequest) GetKey ¶ added in v1.0.7
func (x *SetRequest) GetKey() string
func (*SetRequest) GetStringValue ¶ added in v1.0.7
func (x *SetRequest) GetStringValue() string
func (*SetRequest) GetValue ¶ added in v1.0.7
func (m *SetRequest) GetValue() isSetRequest_Value
func (*SetRequest) ProtoMessage ¶ added in v1.0.7
func (*SetRequest) ProtoMessage()
func (*SetRequest) ProtoReflect ¶ added in v1.0.7
func (x *SetRequest) ProtoReflect() protoreflect.Message
func (*SetRequest) Reset ¶ added in v1.0.7
func (x *SetRequest) Reset()
func (*SetRequest) String ¶ added in v1.0.7
func (x *SetRequest) String() string
type SetRequest_BoolValue ¶ added in v1.0.7
type SetRequest_BoolValue struct {
BoolValue bool `protobuf:"varint,7,opt,name=BoolValue,proto3,oneof"`
}
type SetRequest_BytesValue ¶ added in v1.0.7
type SetRequest_BytesValue struct {
BytesValue []byte `protobuf:"bytes,8,opt,name=BytesValue,proto3,oneof"`
}
type SetRequest_Float32Value ¶ added in v1.0.7
type SetRequest_Float32Value struct {
Float32Value float32 `protobuf:"fixed32,5,opt,name=Float32Value,proto3,oneof"`
}
type SetRequest_Float64Value ¶ added in v1.0.7
type SetRequest_Float64Value struct {
Float64Value float64 `protobuf:"fixed64,6,opt,name=Float64Value,proto3,oneof"`
}
type SetRequest_Int32Value ¶ added in v1.0.7
type SetRequest_Int32Value struct {
Int32Value int32 `protobuf:"varint,3,opt,name=Int32Value,proto3,oneof"`
}
type SetRequest_Int64Value ¶ added in v1.0.7
type SetRequest_Int64Value struct {
Int64Value int64 `protobuf:"varint,4,opt,name=Int64Value,proto3,oneof"`
}
type SetRequest_StringValue ¶ added in v1.0.7
type SetRequest_StringValue struct {
StringValue string `protobuf:"bytes,2,opt,name=StringValue,proto3,oneof"`
}
type SetResponse ¶ added in v1.0.7
type SetResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*SetResponse) Descriptor
deprecated
added in
v1.0.7
func (*SetResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetResponse.ProtoReflect.Descriptor instead.
func (*SetResponse) GetOk ¶ added in v1.0.7
func (x *SetResponse) GetOk() bool
func (*SetResponse) ProtoMessage ¶ added in v1.0.7
func (*SetResponse) ProtoMessage()
func (*SetResponse) ProtoReflect ¶ added in v1.0.7
func (x *SetResponse) ProtoReflect() protoreflect.Message
func (*SetResponse) Reset ¶ added in v1.0.7
func (x *SetResponse) Reset()
func (*SetResponse) String ¶ added in v1.0.7
func (x *SetResponse) String() string
type UnimplementedFlyDBServiceServer ¶
type UnimplementedFlyDBServiceServer struct { }
UnimplementedFlyDBServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFlyDBServiceServer) Del ¶
func (UnimplementedFlyDBServiceServer) Del(context.Context, *DelRequest) (*DelResponse, error)
func (UnimplementedFlyDBServiceServer) Get ¶
func (UnimplementedFlyDBServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedFlyDBServiceServer) Put ¶
func (UnimplementedFlyDBServiceServer) Put(context.Context, *SetRequest) (*SetResponse, error)
type UnsafeFlyDBServiceServer ¶
type UnsafeFlyDBServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFlyDBServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FlyDBServiceServer will result in compilation errors.