Documentation ¶
Index ¶
- Variables
- func RegisterLevelDBGrpcServer(s grpc.ServiceRegistrar, srv LevelDBGrpcServer)
- type Empty
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Entry) GetCreatedAt() int64
- func (x *Entry) GetId() string
- func (x *Entry) GetIsEncrypted() bool
- func (x *Entry) GetKey() string
- func (x *Entry) GetPrefix() string
- func (x *Entry) GetUpdatedAt() int64
- func (x *Entry) GetValue() string
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (x *Entry) String() string
- type GetRequest
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetEntry() *Entry
- func (x *GetResponse) GetError() string
- func (x *GetResponse) GetSuccess() bool
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- type LevelDBGrpcClient
- type LevelDBGrpcServer
- type PutRequest
- type PutResponse
- func (*PutResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PutResponse) GetEntry() []byte
- func (x *PutResponse) GetError() string
- func (x *PutResponse) GetSuccess() bool
- func (x *PutResponse) GetTimestamp() int64
- func (*PutResponse) ProtoMessage()
- func (x *PutResponse) ProtoReflect() protoreflect.Message
- func (x *PutResponse) Reset()
- func (x *PutResponse) String() string
- type UnimplementedLevelDBGrpcServer
- type UnsafeLevelDBGrpcServer
Constants ¶
This section is empty.
Variables ¶
var File_plugins_storage_leveldb_plugin_proto_leveldb_grpc_proto protoreflect.FileDescriptor
var LevelDBGrpc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pluginspb.LevelDBGrpc", HandlerType: (*LevelDBGrpcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Put", Handler: _LevelDBGrpc_Put_Handler, }, { MethodName: "Get", Handler: _LevelDBGrpc_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugins/storage/leveldb_plugin/proto/leveldb_grpc.proto", }
LevelDBGrpc_ServiceDesc is the grpc.ServiceDesc for LevelDBGrpc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLevelDBGrpcServer ¶
func RegisterLevelDBGrpcServer(s grpc.ServiceRegistrar, srv LevelDBGrpcServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Entry ¶
type Entry struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` IsEncrypted bool `protobuf:"varint,5,opt,name=is_encrypted,json=isEncrypted,proto3" json:"is_encrypted,omitempty"` CreatedAt int64 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Entry) Descriptor
deprecated
func (*Entry) GetCreatedAt ¶
func (*Entry) GetIsEncrypted ¶
func (*Entry) GetUpdatedAt ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
type GetRequest ¶
type GetRequest struct { Key []byte `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() []byte
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 { Entry *Entry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetEntry ¶
func (x *GetResponse) GetEntry() *Entry
func (*GetResponse) GetError ¶
func (x *GetResponse) GetError() string
func (*GetResponse) GetSuccess ¶
func (x *GetResponse) GetSuccess() bool
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 LevelDBGrpcClient ¶
type LevelDBGrpcClient interface { Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) }
LevelDBGrpcClient is the client API for LevelDBGrpc 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 NewLevelDBGrpcClient ¶
func NewLevelDBGrpcClient(cc grpc.ClientConnInterface) LevelDBGrpcClient
type LevelDBGrpcServer ¶
type LevelDBGrpcServer interface { Put(context.Context, *PutRequest) (*PutResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) }
LevelDBGrpcServer is the server API for LevelDBGrpc service. All implementations should embed UnimplementedLevelDBGrpcServer for forward compatibility
type PutRequest ¶
type PutRequest struct { Key []byte `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 (*PutRequest) Descriptor
deprecated
func (*PutRequest) Descriptor() ([]byte, []int)
Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.
func (*PutRequest) GetKey ¶
func (x *PutRequest) GetKey() []byte
func (*PutRequest) GetValue ¶
func (x *PutRequest) GetValue() []byte
func (*PutRequest) ProtoMessage ¶
func (*PutRequest) ProtoMessage()
func (*PutRequest) ProtoReflect ¶
func (x *PutRequest) ProtoReflect() protoreflect.Message
func (*PutRequest) Reset ¶
func (x *PutRequest) Reset()
func (*PutRequest) String ¶
func (x *PutRequest) String() string
type PutResponse ¶
type PutResponse struct { Entry []byte `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*PutResponse) Descriptor
deprecated
func (*PutResponse) Descriptor() ([]byte, []int)
Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.
func (*PutResponse) GetEntry ¶
func (x *PutResponse) GetEntry() []byte
func (*PutResponse) GetError ¶
func (x *PutResponse) GetError() string
func (*PutResponse) GetSuccess ¶
func (x *PutResponse) GetSuccess() bool
func (*PutResponse) GetTimestamp ¶
func (x *PutResponse) GetTimestamp() int64
func (*PutResponse) ProtoMessage ¶
func (*PutResponse) ProtoMessage()
func (*PutResponse) ProtoReflect ¶
func (x *PutResponse) ProtoReflect() protoreflect.Message
func (*PutResponse) Reset ¶
func (x *PutResponse) Reset()
func (*PutResponse) String ¶
func (x *PutResponse) String() string
type UnimplementedLevelDBGrpcServer ¶
type UnimplementedLevelDBGrpcServer struct { }
UnimplementedLevelDBGrpcServer should be embedded to have forward compatible implementations.
func (UnimplementedLevelDBGrpcServer) Get ¶
func (UnimplementedLevelDBGrpcServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedLevelDBGrpcServer) Put ¶
func (UnimplementedLevelDBGrpcServer) Put(context.Context, *PutRequest) (*PutResponse, error)
type UnsafeLevelDBGrpcServer ¶
type UnsafeLevelDBGrpcServer interface {
// contains filtered or unexported methods
}
UnsafeLevelDBGrpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LevelDBGrpcServer will result in compilation errors.