couchbase

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCouchbaseStateStore

func NewCouchbaseStateStore(logger logger.Logger) state.Store

NewCouchbaseStateStore returns a new couchbase state store.

Types

type Couchbase

type Couchbase struct {
	state.BulkStore
	// contains filtered or unexported fields
}

Couchbase is a couchbase state store.

func (*Couchbase) Close added in v1.12.0

func (cbs *Couchbase) Close() error

func (*Couchbase) Delete

func (cbs *Couchbase) Delete(ctx context.Context, req *state.DeleteRequest) error

Delete performs a delete operation.

func (*Couchbase) Features added in v1.1.1

func (cbs *Couchbase) Features() []state.Feature

Features returns the features available in this state store.

func (*Couchbase) Get

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

Get retrieves state from couchbase with a key.

func (*Couchbase) GetComponentMetadata added in v1.10.1

func (cbs *Couchbase) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

func (*Couchbase) Init

func (cbs *Couchbase) Init(_ context.Context, metadata state.Metadata) error

Init does metadata and connection parsing.

func (*Couchbase) Set

func (cbs *Couchbase) Set(ctx context.Context, 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