Documentation ¶
Index ¶
- func DeleteMultiOps(ctx context.Context, keys []datastore.Key, ops deleteOps) error
- func GetAllOps(ctx context.Context, qDump *datastore.QueryDump, dst interface{}, ...) ([]datastore.Key, error)
- func GetMultiOps(ctx context.Context, keys []datastore.Key, dst interface{}, ops getOps) error
- func NextOps(ctx context.Context, qDump *datastore.QueryDump, dst interface{}, ops nextOps) (datastore.Key, error)
- func PutMultiOps(ctx context.Context, keys []datastore.Key, src interface{}, ops putOps) ([]datastore.Key, []datastore.PendingKey, error)
- type MiddlewareBridge
- func (cb *MiddlewareBridge) AllocateIDs(info *datastore.MiddlewareInfo, keys []datastore.Key) ([]datastore.Key, error)
- func (cb *MiddlewareBridge) Count(info *datastore.MiddlewareInfo, q datastore.Query, qDump *datastore.QueryDump) (int, error)
- func (cb *MiddlewareBridge) DeleteMultiWithTx(info *datastore.MiddlewareInfo, keys []datastore.Key) error
- func (cb *MiddlewareBridge) DeleteMultiWithoutTx(info *datastore.MiddlewareInfo, keys []datastore.Key) error
- func (cb *MiddlewareBridge) GetAll(info *datastore.MiddlewareInfo, q datastore.Query, qDump *datastore.QueryDump, ...) ([]datastore.Key, error)
- func (cb *MiddlewareBridge) GetMultiWithTx(info *datastore.MiddlewareInfo, keys []datastore.Key, ...) error
- func (cb *MiddlewareBridge) GetMultiWithoutTx(info *datastore.MiddlewareInfo, keys []datastore.Key, ...) error
- func (cb *MiddlewareBridge) Next(info *datastore.MiddlewareInfo, q datastore.Query, qDump *datastore.QueryDump, ...) (datastore.Key, error)
- func (cb *MiddlewareBridge) PostCommit(info *datastore.MiddlewareInfo, tx datastore.Transaction, ...) error
- func (cb *MiddlewareBridge) PostRollback(info *datastore.MiddlewareInfo, tx datastore.Transaction) error
- func (cb *MiddlewareBridge) PutMultiWithTx(info *datastore.MiddlewareInfo, keys []datastore.Key, ...) ([]datastore.PendingKey, error)
- func (cb *MiddlewareBridge) PutMultiWithoutTx(info *datastore.MiddlewareInfo, keys []datastore.Key, ...) ([]datastore.Key, error)
- func (cb *MiddlewareBridge) Run(info *datastore.MiddlewareInfo, q datastore.Query, qDump *datastore.QueryDump) datastore.Iterator
- type OriginalClientBridge
- type OriginalIteratorBridge
- type OriginalTransactionBridge
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMultiOps ¶
func GetMultiOps ¶
Types ¶
type MiddlewareBridge ¶ added in v0.11.0
type MiddlewareBridge struct { Info *datastore.MiddlewareInfo // contains filtered or unexported fields }
func NewCacheBridge ¶
func NewCacheBridge(info *datastore.MiddlewareInfo, ocb OriginalClientBridge, otb OriginalTransactionBridge, oib OriginalIteratorBridge, mws []datastore.Middleware) *MiddlewareBridge
func (*MiddlewareBridge) AllocateIDs ¶ added in v0.14.0
func (cb *MiddlewareBridge) AllocateIDs(info *datastore.MiddlewareInfo, keys []datastore.Key) ([]datastore.Key, error)
func (*MiddlewareBridge) Count ¶ added in v0.14.0
func (cb *MiddlewareBridge) Count(info *datastore.MiddlewareInfo, q datastore.Query, qDump *datastore.QueryDump) (int, error)
func (*MiddlewareBridge) DeleteMultiWithTx ¶ added in v0.11.0
func (cb *MiddlewareBridge) DeleteMultiWithTx(info *datastore.MiddlewareInfo, keys []datastore.Key) error
func (*MiddlewareBridge) DeleteMultiWithoutTx ¶ added in v0.11.0
func (cb *MiddlewareBridge) DeleteMultiWithoutTx(info *datastore.MiddlewareInfo, keys []datastore.Key) error
func (*MiddlewareBridge) GetAll ¶ added in v0.11.0
func (cb *MiddlewareBridge) GetAll(info *datastore.MiddlewareInfo, q datastore.Query, qDump *datastore.QueryDump, psList *[]datastore.PropertyList) ([]datastore.Key, error)
func (*MiddlewareBridge) GetMultiWithTx ¶ added in v0.11.0
func (cb *MiddlewareBridge) GetMultiWithTx(info *datastore.MiddlewareInfo, keys []datastore.Key, psList []datastore.PropertyList) error
func (*MiddlewareBridge) GetMultiWithoutTx ¶ added in v0.11.0
func (cb *MiddlewareBridge) GetMultiWithoutTx(info *datastore.MiddlewareInfo, keys []datastore.Key, psList []datastore.PropertyList) error
func (*MiddlewareBridge) Next ¶ added in v0.11.0
func (cb *MiddlewareBridge) Next(info *datastore.MiddlewareInfo, q datastore.Query, qDump *datastore.QueryDump, iter datastore.Iterator, ps *datastore.PropertyList) (datastore.Key, error)
func (*MiddlewareBridge) PostCommit ¶ added in v0.11.0
func (cb *MiddlewareBridge) PostCommit(info *datastore.MiddlewareInfo, tx datastore.Transaction, commit datastore.Commit) error
func (*MiddlewareBridge) PostRollback ¶ added in v0.11.0
func (cb *MiddlewareBridge) PostRollback(info *datastore.MiddlewareInfo, tx datastore.Transaction) error
func (*MiddlewareBridge) PutMultiWithTx ¶ added in v0.11.0
func (cb *MiddlewareBridge) PutMultiWithTx(info *datastore.MiddlewareInfo, keys []datastore.Key, psList []datastore.PropertyList) ([]datastore.PendingKey, error)
func (*MiddlewareBridge) PutMultiWithoutTx ¶ added in v0.11.0
func (cb *MiddlewareBridge) PutMultiWithoutTx(info *datastore.MiddlewareInfo, keys []datastore.Key, psList []datastore.PropertyList) ([]datastore.Key, error)
type OriginalClientBridge ¶
type OriginalClientBridge interface { AllocateIDs(ctx context.Context, keys []datastore.Key) ([]datastore.Key, error) PutMulti(ctx context.Context, keys []datastore.Key, psList []datastore.PropertyList) ([]datastore.Key, error) GetMulti(ctx context.Context, keys []datastore.Key, psList []datastore.PropertyList) error DeleteMulti(ctx context.Context, keys []datastore.Key) error Run(ctx context.Context, q datastore.Query, qDump *datastore.QueryDump) datastore.Iterator GetAll(ctx context.Context, q datastore.Query, qDump *datastore.QueryDump, psList *[]datastore.PropertyList) ([]datastore.Key, error) Count(ctx context.Context, q datastore.Query, qDump *datastore.QueryDump) (int, error) }
type OriginalIteratorBridge ¶
type OriginalTransactionBridge ¶
type OriginalTransactionBridge interface { PutMulti(keys []datastore.Key, psList []datastore.PropertyList) ([]datastore.PendingKey, error) GetMulti(keys []datastore.Key, psList []datastore.PropertyList) error DeleteMulti(keys []datastore.Key) error }
Click to show internal directories.
Click to hide internal directories.