couchdb

package
v0.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2018 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCouchDBBackend

func NewCouchDBBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)

func NewTransactionalCouchDBBackend

func NewTransactionalCouchDBBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)

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) Get

func (m *CouchDBBackend) Get(ctx context.Context, key string) (*physical.Entry, error)

Get is used to fetch an entry

func (*CouchDBBackend) GetInternal

func (m *CouchDBBackend) GetInternal(ctx context.Context, key string) (*physical.Entry, error)

GetInternal is used to fetch an entry

func (*CouchDBBackend) List

func (m *CouchDBBackend) List(ctx context.Context, prefix string) ([]string, error)

List is used to list all the keys under a given prefix

func (*CouchDBBackend) Put

func (m *CouchDBBackend) Put(ctx context.Context, entry *physical.Entry) error

Put is used to insert or update an entry

func (*CouchDBBackend) PutInternal

func (m *CouchDBBackend) PutInternal(ctx context.Context, entry *physical.Entry) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL