couchbase

package
v0.0.0-...-0c3f4cd Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBucket

func CreateBucket(client *Client) *gocb.Bucket

func CreateScope

func CreateScope(bucket *gocb.Bucket) *gocb.Scope

func NewWishRepository

func NewWishRepository(opts *NewCouchbaseRepositoryOpts) wish.Repository

Types

type Client

type Client struct {
	Cluster *gocb.Cluster
	// contains filtered or unexported fields
}

func NewCouchbaseClient

func NewCouchbaseClient(conf *config.DatabaseConfig) (client *Client, err error)

type NewCouchbaseRepositoryOpts

type NewCouchbaseRepositoryOpts struct {
	Client     *Client
	Bucket     *gocb.Bucket
	Scope      *gocb.Scope
	Collection *gocb.Collection
	Logger     *zap.Logger
}

func CreateWishRepositoryConfig

func CreateWishRepositoryConfig(client *Client, bucket *gocb.Bucket, scope *gocb.Scope, logger *zap.Logger) *NewCouchbaseRepositoryOpts

Jump to

Keyboard shortcuts

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