Documentation
¶
Index ¶
- type Batch
- type Boom
- func (bm *Boom) Batch() *Batch
- func (bm *Boom) Count(ctx context.Context, q datastore.Query) (int, error)
- func (bm *Boom) Delete(ctx context.Context, src interface{}) error
- func (bm *Boom) DeleteMulti(ctx context.Context, src interface{}) error
- func (bm *Boom) Get(ctx context.Context, dst interface{}) error
- func (bm *Boom) GetAll(ctx context.Context, q datastore.Query, dst interface{}) ([]datastore.Key, error)
- func (bm *Boom) GetMulti(ctx context.Context, dst interface{}) error
- func (bm *Boom) Key(src interface{}) datastore.Key
- func (bm *Boom) KeyError(src interface{}) (datastore.Key, error)
- func (bm *Boom) Kind(src interface{}) string
- func (bm *Boom) NewTransaction(ctx context.Context) (*Transaction, error)
- func (bm *Boom) Put(ctx context.Context, src interface{}) (datastore.Key, error)
- func (bm *Boom) PutMulti(ctx context.Context, src interface{}) ([]datastore.Key, error)
- func (bm *Boom) Run(ctx context.Context, q datastore.Query) *Iterator
- func (bm *Boom) RunInTransaction(ctx context.Context, f func(tx *Transaction) error) (datastore.Commit, error)
- type Iterator
- type Transaction
- func (tx *Transaction) Batch() *TransactionBatch
- func (tx *Transaction) Commit() (datastore.Commit, error)
- func (tx *Transaction) Delete(src interface{}) error
- func (tx *Transaction) DeleteMulti(src interface{}) error
- func (tx *Transaction) Get(dst interface{}) error
- func (tx *Transaction) GetMulti(dst interface{}) error
- func (tx *Transaction) Put(src interface{}) (datastore.PendingKey, error)
- func (tx *Transaction) PutMulti(src interface{}) ([]datastore.PendingKey, error)
- func (tx *Transaction) Rollback() error
- type TransactionBatch
- func (b *TransactionBatch) Delete(ctx context.Context, dst interface{}) chan error
- func (b *TransactionBatch) Exec(ctx context.Context) error
- func (b *TransactionBatch) Get(ctx context.Context, dst interface{}) chan error
- func (b *TransactionBatch) Put(ctx context.Context, src interface{}) chan *datastore.TransactionPutResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boom ¶
func (*Boom) NewTransaction ¶
func (bm *Boom) NewTransaction(ctx context.Context) (*Transaction, error)
func (*Boom) RunInTransaction ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (*Transaction) Batch ¶
func (tx *Transaction) Batch() *TransactionBatch
func (*Transaction) Delete ¶
func (tx *Transaction) Delete(src interface{}) error
func (*Transaction) DeleteMulti ¶
func (tx *Transaction) DeleteMulti(src interface{}) error
func (*Transaction) Get ¶
func (tx *Transaction) Get(dst interface{}) error
func (*Transaction) GetMulti ¶
func (tx *Transaction) GetMulti(dst interface{}) error
func (*Transaction) Put ¶
func (tx *Transaction) Put(src interface{}) (datastore.PendingKey, error)
func (*Transaction) PutMulti ¶
func (tx *Transaction) PutMulti(src interface{}) ([]datastore.PendingKey, error)
func (*Transaction) Rollback ¶
func (tx *Transaction) Rollback() error
type TransactionBatch ¶
type TransactionBatch struct {
// contains filtered or unexported fields
}
func (*TransactionBatch) Delete ¶
func (b *TransactionBatch) Delete(ctx context.Context, dst interface{}) chan error
func (*TransactionBatch) Get ¶
func (b *TransactionBatch) Get(ctx context.Context, dst interface{}) chan error
func (*TransactionBatch) Put ¶
func (b *TransactionBatch) Put(ctx context.Context, src interface{}) chan *datastore.TransactionPutResult
Click to show internal directories.
Click to hide internal directories.