couchdb

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: MPL-2.0 Imports: 15 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(key string) error

Delete is used to permanently delete an entry

func (*CouchDBBackend) DeleteInternal

func (m *CouchDBBackend) DeleteInternal(key string) error

DeleteInternal is used to permanently delete an entry

func (*CouchDBBackend) Get

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

Get is used to fetch an entry

func (*CouchDBBackend) GetInternal

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

GetInternal is used to fetch an entry

func (*CouchDBBackend) List

func (m *CouchDBBackend) List(prefix string) ([]string, error)

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

func (*CouchDBBackend) Put

func (m *CouchDBBackend) Put(entry *physical.Entry) error

Put is used to insert or update an entry

func (*CouchDBBackend) PutInternal

func (m *CouchDBBackend) PutInternal(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