Documentation ¶
Index ¶
- func NewLevelDB() store.Storage
- type LevelDB
- func (ldb *LevelDB) Client(broker *plugin.MuxBroker, client *rpc.Client) (interface{}, error)
- func (ldb *LevelDB) Get(key string) (value *store.Entry)
- func (ldb *LevelDB) GetWithPrefix(prefix, key string) (value *store.Entry)
- func (ldb *LevelDB) Initialize()
- func (ldb *LevelDB) Open() (interface{}, error)
- func (ldb *LevelDB) Put(key string, value string) error
- func (ldb *LevelDB) PutWithPrefix(prefix, key string, value string) error
- func (ldb *LevelDB) Server(broker *plugin.MuxBroker) (interface{}, error)
- type LevelDBGrpc
- type LevelDBGrpcClient
- type LevelDBGrpcServer
- type LevelDBPluginInterface
- type RPCClient
- type RPCServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLevelDB ¶
Types ¶
type LevelDB ¶
type LevelDB struct { Impl LevelDBPluginInterface // contains filtered or unexported fields }
var DB *LevelDB
DB contains the LevelDB pointer
func (*LevelDB) GetWithPrefix ¶
func (*LevelDB) Initialize ¶
func (ldb *LevelDB) Initialize()
func (*LevelDB) PutWithPrefix ¶
type LevelDBGrpc ¶
type LevelDBGrpc struct { plugin.Plugin Impl LevelDBPluginInterface }
func (*LevelDBGrpc) GRPCClient ¶
func (p *LevelDBGrpc) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*LevelDBGrpc) GRPCServer ¶
func (p *LevelDBGrpc) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
type LevelDBGrpcClient ¶
type LevelDBGrpcClient struct {
// contains filtered or unexported fields
}
func (*LevelDBGrpcClient) Get ¶
func (l *LevelDBGrpcClient) Get(key []byte) (*proto.GetResponse, error)
func (*LevelDBGrpcClient) Put ¶
func (l *LevelDBGrpcClient) Put(key []byte, value []byte) (*proto.PutResponse, error)
type LevelDBGrpcServer ¶
type LevelDBGrpcServer struct {
Impl LevelDBPluginInterface
}
func (*LevelDBGrpcServer) Get ¶
func (ls *LevelDBGrpcServer) Get(ctx context.Context, key []byte) (*proto.GetResponse, error)
func (*LevelDBGrpcServer) Put ¶
func (ls *LevelDBGrpcServer) Put(ctx context.Context, key []byte, value []byte) (*proto.PutResponse, error)
type LevelDBPluginInterface ¶
Click to show internal directories.
Click to hide internal directories.