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
Click to show internal directories.
Click to hide internal directories.