couchbase

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Couchbase

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

Couchbase is a couchbase state store

func NewCouchbaseStateStore

func NewCouchbaseStateStore(logger logger.Logger) *Couchbase

NewCouchbaseStateStore returns a new couchbase state store

func (*Couchbase) BulkDelete

func (cbs *Couchbase) BulkDelete(req []state.DeleteRequest) error

BulkDelete performs a bulk delete operation

func (*Couchbase) BulkSet

func (cbs *Couchbase) BulkSet(req []state.SetRequest) error

BulkSet performs a bulks save operation

func (*Couchbase) Delete

func (cbs *Couchbase) Delete(req *state.DeleteRequest) error

Delete performs a delete operation

func (*Couchbase) Get

func (cbs *Couchbase) Get(req *state.GetRequest) (*state.GetResponse, error)

Get retrieves state from couchbase with a key

func (*Couchbase) Init

func (cbs *Couchbase) Init(metadata state.Metadata) error

Init does metadata and connection parsing

func (*Couchbase) Set

func (cbs *Couchbase) Set(req *state.SetRequest) error

Set stores value for a key to couchbase. It honors ETag (for concurrency) and consistency settings

Jump to

Keyboard shortcuts

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