Documentation ¶
Index ¶
- func NewCouchDBBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)
- func NewTransactionalCouchDBBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)
- type CouchDBBackend
- func (m *CouchDBBackend) Delete(ctx context.Context, key string) error
- func (m *CouchDBBackend) DeleteInternal(ctx context.Context, key string) error
- func (m *CouchDBBackend) Get(ctx context.Context, key string) (*physical.Entry, error)
- func (m *CouchDBBackend) GetInternal(ctx context.Context, key string) (*physical.Entry, error)
- func (m *CouchDBBackend) List(ctx context.Context, prefix string) ([]string, error)
- func (m *CouchDBBackend) Put(ctx context.Context, entry *physical.Entry) error
- func (m *CouchDBBackend) PutInternal(ctx context.Context, entry *physical.Entry) error
- type TransactionalCouchDBBackend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCouchDBBackend ¶
Types ¶
type CouchDBBackend ¶
type CouchDBBackend struct {
// contains filtered or unexported fields
}
CouchDBBackend allows the management of couchdb users
func (*CouchDBBackend) Delete ¶
func (m *CouchDBBackend) Delete(ctx context.Context, key string) error
Delete is used to permanently delete an entry
func (*CouchDBBackend) DeleteInternal ¶
func (m *CouchDBBackend) DeleteInternal(ctx context.Context, key string) error
DeleteInternal is used to permanently delete an entry
func (*CouchDBBackend) GetInternal ¶
GetInternal is used to fetch an entry
func (*CouchDBBackend) PutInternal ¶
PutInternal is used to insert or update an entry
type TransactionalCouchDBBackend ¶
type TransactionalCouchDBBackend struct {
CouchDBBackend
}
TransactionalCouchDBBackend creates a couchdb backend that forces all operations to happen in serial
Click to show internal directories.
Click to hide internal directories.