couchbase

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHash

func ComputeHash(id []byte, algorithm string) (string, error)

func NewCouchbase

func NewCouchbase(db repo.IRepo) common.IDestination

Types

type Couchbase

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

func (*Couchbase) Complete

func (c *Couchbase) Complete() (err error)

func (*Couchbase) CreateIndexes

func (c *Couchbase) CreateIndexes(indexes []common.Index) error

func (*Couchbase) Init

func (c *Couchbase) Init(cbOpts *option.Options, documentKey common.ICBDocumentKey) error

func (*Couchbase) ProcessData

func (c *Couchbase) ProcessData(data map[string]interface{}) error

func (*Couchbase) UpsertData

func (c *Couchbase) UpsertData() error

type DocKey

type DocKey struct {
	Value string
	Kind  common.DocumentKind // string | field | UUID
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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