couchdbstore

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CouchDBStore

type CouchDBStore struct {
	// contains filtered or unexported fields
}

CouchDBStore represents a CouchDB-backed database.

func (*CouchDBStore) Get

func (c *CouchDBStore) Get(k string) ([]byte, error)

Get retrieves the value in the store associated with the given key.

func (*CouchDBStore) Put

func (c *CouchDBStore) Put(k string, v []byte) error

Put stores the given key-value pair in the store.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider represents an CouchDB implementation of the storage.Provider interface

func NewProvider

func NewProvider(hostURL string) (*Provider, error)

NewProvider instantiates Provider

func (*Provider) Close

func (p *Provider) Close() error

Close closes the provider.

func (*Provider) CloseStore

func (p *Provider) CloseStore(name string) error

CloseStore closes a previously opened store.

func (*Provider) CreateStore

func (p *Provider) CreateStore(name string) error

CreateStore creates a new store with the given name.

func (*Provider) OpenStore

func (p *Provider) OpenStore(name string) (storage.Store, error)

OpenStore opens an existing store with the given name and returns it.

Jump to

Keyboard shortcuts

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