Documentation ¶
Index ¶
- func NewCockroachDBBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)
- type CockroachDBBackend
- func (c *CockroachDBBackend) Delete(ctx context.Context, key string) error
- func (c *CockroachDBBackend) Get(ctx context.Context, key string) (*physical.Entry, error)
- func (c *CockroachDBBackend) List(ctx context.Context, prefix string) ([]string, error)
- func (c *CockroachDBBackend) Put(ctx context.Context, entry *physical.Entry) error
- func (c *CockroachDBBackend) Transaction(ctx context.Context, txns []*physical.TxnEntry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CockroachDBBackend ¶
type CockroachDBBackend struct {
// contains filtered or unexported fields
}
CockroachDBBackend Backend is a physical backend that stores data within a CockroachDB database.
func (*CockroachDBBackend) Delete ¶
func (c *CockroachDBBackend) Delete(ctx context.Context, key string) error
Delete is used to permanently delete an entry
func (*CockroachDBBackend) List ¶
List is used to list all the keys under a given prefix, up to the next prefix.
func (*CockroachDBBackend) Transaction ¶
Transaction is used to run multiple entries via a transaction
Click to show internal directories.
Click to hide internal directories.