couchbase

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CouchbaseOpRM    = CouchbaseOp("rm")
	CouchbaseOpMV    = CouchbaseOp("mv")
	CouchbaseOpSet   = CouchbaseOp("set")
	CouchbaseOpMerge = CouchbaseOp("merge")
)

Functions

This section is empty.

Types

type Couchbase

type Couchbase struct {
	Client        *gocb.Cluster
	Address       string
	User          *string
	Password      *string
	BucketName    *string
	Scope         *string
	Collection    *string
	ID            *string
	RetrieveQuery *schema.SqlQuery
	Clear         *CouchbaseDoc
	Fail          *CouchbaseDoc
	// TLS
	EnableTLS   *bool
	TLSInsecure *bool
	TLSCert     *string
	TLSKey      *string
	TLSCA       *string
	// contains filtered or unexported fields
}

func (*Couchbase) Cleanup

func (d *Couchbase) Cleanup() error

func (*Couchbase) ClearWork

func (d *Couchbase) ClearWork() error

func (*Couchbase) GetWork

func (d *Couchbase) GetWork() (io.Reader, error)

func (*Couchbase) HandleFailure

func (d *Couchbase) HandleFailure() error

func (*Couchbase) Init

func (d *Couchbase) Init() error

func (*Couchbase) LoadEnv

func (d *Couchbase) LoadEnv(prefix string) error

func (*Couchbase) LoadFlags

func (d *Couchbase) LoadFlags() error

type CouchbaseDoc

type CouchbaseDoc struct {
	Op         CouchbaseOp    `json:"op"`
	Doc        map[string]any `json:"doc"`
	Bucket     string         `json:"bucket"`
	Scope      string         `json:"scope"`
	Collection string         `json:"collection"`
	ID         string         `json:"id"`
}

type CouchbaseOp

type CouchbaseOp string

Jump to

Keyboard shortcuts

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