Documentation ¶
Index ¶
- Variables
- func RegisterMemgoServiceServer(s grpc.ServiceRegistrar, srv MemgoServiceServer)
- type DeleteRequest
- type MemgoServiceClient
- type MemgoServiceServer
- type ReadRequest
- type ReadResponse
- func (*ReadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadResponse) GetExpiresAt() *timestamppb.Timestamp
- func (x *ReadResponse) GetKey() string
- func (x *ReadResponse) GetValue() []byte
- func (*ReadResponse) ProtoMessage()
- func (x *ReadResponse) ProtoReflect() protoreflect.Message
- func (x *ReadResponse) Reset()
- func (x *ReadResponse) String() string
- type UnimplementedMemgoServiceServer
- func (UnimplementedMemgoServiceServer) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error)
- func (UnimplementedMemgoServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
- func (UnimplementedMemgoServiceServer) Write(context.Context, *WriteRequest) (*emptypb.Empty, error)
- type UnsafeMemgoServiceServer
- type WriteRequest
- func (*WriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteRequest) GetExpiresAt() *timestamppb.Timestamp
- func (x *WriteRequest) GetKey() string
- func (x *WriteRequest) GetValue() []byte
- func (*WriteRequest) ProtoMessage()
- func (x *WriteRequest) ProtoReflect() protoreflect.Message
- func (x *WriteRequest) Reset()
- func (x *WriteRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_memgo_proto protoreflect.FileDescriptor
var MemgoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "memgopb.MemgoService", HandlerType: (*MemgoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Write", Handler: _MemgoService_Write_Handler, }, { MethodName: "Read", Handler: _MemgoService_Read_Handler, }, { MethodName: "Delete", Handler: _MemgoService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "memgo.proto", }
MemgoService_ServiceDesc is the grpc.ServiceDesc for MemgoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMemgoServiceServer ¶
func RegisterMemgoServiceServer(s grpc.ServiceRegistrar, srv MemgoServiceServer)
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 MemgoServiceClient ¶
type MemgoServiceClient interface { Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
MemgoServiceClient is the client API for MemgoService 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 NewMemgoServiceClient ¶
func NewMemgoServiceClient(cc grpc.ClientConnInterface) MemgoServiceClient
type MemgoServiceServer ¶
type MemgoServiceServer interface { Write(context.Context, *WriteRequest) (*emptypb.Empty, error) Read(context.Context, *ReadRequest) (*ReadResponse, error) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
MemgoServiceServer is the server API for MemgoService service. All implementations must embed UnimplementedMemgoServiceServer for forward compatibility
type ReadRequest ¶
type ReadRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*ReadRequest) Descriptor
deprecated
func (*ReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.
func (*ReadRequest) GetKey ¶
func (x *ReadRequest) GetKey() string
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) ProtoReflect ¶
func (x *ReadRequest) ProtoReflect() protoreflect.Message
func (*ReadRequest) Reset ¶
func (x *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (x *ReadRequest) String() string
type ReadResponse ¶
type ReadResponse 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"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // contains filtered or unexported fields }
func (*ReadResponse) Descriptor
deprecated
func (*ReadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.
func (*ReadResponse) GetExpiresAt ¶
func (x *ReadResponse) GetExpiresAt() *timestamppb.Timestamp
func (*ReadResponse) GetKey ¶
func (x *ReadResponse) GetKey() string
func (*ReadResponse) GetValue ¶
func (x *ReadResponse) GetValue() []byte
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) ProtoReflect ¶
func (x *ReadResponse) ProtoReflect() protoreflect.Message
func (*ReadResponse) Reset ¶
func (x *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (x *ReadResponse) String() string
type UnimplementedMemgoServiceServer ¶
type UnimplementedMemgoServiceServer struct { }
UnimplementedMemgoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMemgoServiceServer) Delete ¶
func (UnimplementedMemgoServiceServer) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error)
func (UnimplementedMemgoServiceServer) Read ¶
func (UnimplementedMemgoServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
func (UnimplementedMemgoServiceServer) Write ¶
func (UnimplementedMemgoServiceServer) Write(context.Context, *WriteRequest) (*emptypb.Empty, error)
type UnsafeMemgoServiceServer ¶
type UnsafeMemgoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMemgoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MemgoServiceServer will result in compilation errors.
type WriteRequest ¶
type WriteRequest 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"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // contains filtered or unexported fields }
func (*WriteRequest) Descriptor
deprecated
func (*WriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.
func (*WriteRequest) GetExpiresAt ¶
func (x *WriteRequest) GetExpiresAt() *timestamppb.Timestamp
func (*WriteRequest) GetKey ¶
func (x *WriteRequest) GetKey() string
func (*WriteRequest) GetValue ¶
func (x *WriteRequest) GetValue() []byte
func (*WriteRequest) ProtoMessage ¶
func (*WriteRequest) ProtoMessage()
func (*WriteRequest) ProtoReflect ¶
func (x *WriteRequest) ProtoReflect() protoreflect.Message
func (*WriteRequest) Reset ¶
func (x *WriteRequest) Reset()
func (*WriteRequest) String ¶
func (x *WriteRequest) String() string