Documentation ¶
Index ¶
- type DSMongo
- func (dsm *DSMongo) Close() error
- func (dsm *DSMongo) Delete(ctx context.Context, id string) error
- func (dsm *DSMongo) Get(ctx context.Context, id string) ([]byte, error)
- func (dsm *DSMongo) GetSize(ctx context.Context, id string) (int64, error)
- func (dsm *DSMongo) Has(ctx context.Context, id string) (bool, error)
- func (dsm *DSMongo) Put(ctx context.Context, item *StoreItem, ref *RefItem) error
- func (dsm *DSMongo) Query(ctx context.Context, q dsq.Query) (chan *dsq.Entry, error)
- type MongoStore
- func (ms *MongoStore) Close(context.Context) error
- func (ms *MongoStore) Delete(ctx context.Context, req *dsrpc.CommonRequest) (*dsrpc.CommonReply, error)
- func (ms *MongoStore) Get(ctx context.Context, req *dsrpc.CommonRequest) (*dsrpc.CommonReply, error)
- func (ms *MongoStore) GetSize(ctx context.Context, req *dsrpc.CommonRequest) (*dsrpc.CommonReply, error)
- func (ms *MongoStore) Has(ctx context.Context, req *dsrpc.CommonRequest) (*dsrpc.CommonReply, error)
- func (ms *MongoStore) Put(ctx context.Context, req *dsrpc.CommonRequest) (*dsrpc.CommonReply, error)
- func (ms *MongoStore) Query(req *dsrpc.QueryRequest, reply dsrpc.KVStore_QueryServer) error
- type MongoStoreClient
- type Options
- type RefItem
- type StoreItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DSMongo ¶
type DSMongo struct {
// contains filtered or unexported fields
}
func NewDSMongo ¶
type MongoStore ¶
type MongoStore struct { dsrpc.UnimplementedKVStoreServer // contains filtered or unexported fields }
func NewMongoStore ¶
func NewMongoStore(opts Options) (*MongoStore, error)
func (*MongoStore) Delete ¶
func (ms *MongoStore) Delete(ctx context.Context, req *dsrpc.CommonRequest) (*dsrpc.CommonReply, error)
func (*MongoStore) Get ¶
func (ms *MongoStore) Get(ctx context.Context, req *dsrpc.CommonRequest) (*dsrpc.CommonReply, error)
func (*MongoStore) GetSize ¶
func (ms *MongoStore) GetSize(ctx context.Context, req *dsrpc.CommonRequest) (*dsrpc.CommonReply, error)
func (*MongoStore) Has ¶
func (ms *MongoStore) Has(ctx context.Context, req *dsrpc.CommonRequest) (*dsrpc.CommonReply, error)
func (*MongoStore) Put ¶
func (ms *MongoStore) Put(ctx context.Context, req *dsrpc.CommonRequest) (*dsrpc.CommonReply, error)
func (*MongoStore) Query ¶
func (ms *MongoStore) Query(req *dsrpc.QueryRequest, reply dsrpc.KVStore_QueryServer) error
type MongoStoreClient ¶
type MongoStoreClient struct { dsrpc.KVStoreClient // contains filtered or unexported fields }
func NewMongoStoreClient ¶
func NewMongoStoreClient(srv string) (*MongoStoreClient, error)
func (*MongoStoreClient) Close ¶
func (ms *MongoStoreClient) Close() error
type Options ¶
func DefaultOptions ¶
func DefaultOptions() Options
Click to show internal directories.
Click to hide internal directories.