Documentation
¶
Index ¶
- Variables
- func RegisterGRPCStoreServiceServer(s grpc.ServiceRegistrar, srv GRPCStoreServiceServer)
- type DeleteRequest
- type DeleteResult
- type GRPCStoreServiceClient
- type GRPCStoreServiceServer
- type GetRequest
- type GetResult
- type SetRequest
- type SetResult
- type UnimplementedGRPCStoreServiceServer
- type UnsafeGRPCStoreServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_grpcstore_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGRPCStoreServiceServer ¶
func RegisterGRPCStoreServiceServer(s grpc.ServiceRegistrar, srv GRPCStoreServiceServer)
Types ¶
type DeleteRequest ¶
type DeleteRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetKey ¶
func (x *DeleteRequest) GetKey() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResult ¶
type DeleteResult struct {
// contains filtered or unexported fields
}
func (*DeleteResult) Descriptor
deprecated
func (*DeleteResult) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResult.ProtoReflect.Descriptor instead.
func (*DeleteResult) ProtoMessage ¶
func (*DeleteResult) ProtoMessage()
func (*DeleteResult) ProtoReflect ¶
func (x *DeleteResult) ProtoReflect() protoreflect.Message
func (*DeleteResult) Reset ¶
func (x *DeleteResult) Reset()
func (*DeleteResult) String ¶
func (x *DeleteResult) String() string
type GRPCStoreServiceClient ¶
type GRPCStoreServiceClient interface { Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResult, error) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResult, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResult, error) }
GRPCStoreServiceClient is the client API for GRPCStoreService 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 NewGRPCStoreServiceClient ¶
func NewGRPCStoreServiceClient(cc grpc.ClientConnInterface) GRPCStoreServiceClient
type GRPCStoreServiceServer ¶
type GRPCStoreServiceServer interface { Get(context.Context, *GetRequest) (*GetResult, error) Set(context.Context, *SetRequest) (*SetResult, error) Delete(context.Context, *DeleteRequest) (*DeleteResult, error) // contains filtered or unexported methods }
GRPCStoreServiceServer is the server API for GRPCStoreService service. All implementations must embed UnimplementedGRPCStoreServiceServer 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 GetResult ¶
type GetResult struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GetResult) Descriptor
deprecated
func (*GetResult) ProtoMessage ¶
func (*GetResult) ProtoMessage()
func (*GetResult) ProtoReflect ¶
func (x *GetResult) ProtoReflect() protoreflect.Message
type SetRequest ¶
type SetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*SetRequest) Descriptor
deprecated
func (*SetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRequest.ProtoReflect.Descriptor instead.
func (*SetRequest) GetKey ¶
func (x *SetRequest) GetKey() string
func (*SetRequest) GetValue ¶
func (x *SetRequest) GetValue() []byte
func (*SetRequest) ProtoMessage ¶
func (*SetRequest) ProtoMessage()
func (*SetRequest) ProtoReflect ¶
func (x *SetRequest) ProtoReflect() protoreflect.Message
func (*SetRequest) Reset ¶
func (x *SetRequest) Reset()
func (*SetRequest) String ¶
func (x *SetRequest) String() string
type SetResult ¶
type SetResult struct {
// contains filtered or unexported fields
}
func (*SetResult) Descriptor
deprecated
func (*SetResult) ProtoMessage ¶
func (*SetResult) ProtoMessage()
func (*SetResult) ProtoReflect ¶
func (x *SetResult) ProtoReflect() protoreflect.Message
type UnimplementedGRPCStoreServiceServer ¶
type UnimplementedGRPCStoreServiceServer struct { }
UnimplementedGRPCStoreServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGRPCStoreServiceServer) Delete ¶
func (UnimplementedGRPCStoreServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResult, error)
func (UnimplementedGRPCStoreServiceServer) Get ¶
func (UnimplementedGRPCStoreServiceServer) Get(context.Context, *GetRequest) (*GetResult, error)
func (UnimplementedGRPCStoreServiceServer) Set ¶
func (UnimplementedGRPCStoreServiceServer) Set(context.Context, *SetRequest) (*SetResult, error)
type UnsafeGRPCStoreServiceServer ¶
type UnsafeGRPCStoreServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGRPCStoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GRPCStoreServiceServer will result in compilation errors.