repo

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRepo

type IRepo interface {
	Init(uri string, opts *option.Options) error
	GetAllScopes() ([]gocb.ScopeSpec, error)
	CreateScope(name string) error
	CreateCollection(scope, name string) error
	UpsertData(scope, collection string, docs []gocb.BulkOp) error
	CreateIndex(query string) error
}

func NewRepo

func NewRepo() IRepo

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func (*Repo) CreateCollection

func (r *Repo) CreateCollection(scope, name string) error

func (*Repo) CreateIndex

func (r *Repo) CreateIndex(query string) error

func (*Repo) CreateScope

func (r *Repo) CreateScope(name string) error

func (*Repo) GetAllScopes

func (r *Repo) GetAllScopes() ([]gocb.ScopeSpec, error)

func (*Repo) Init

func (r *Repo) Init(uri string, opts *option.Options) error

func (*Repo) UpsertData

func (r *Repo) UpsertData(scope, collection string, docs []gocb.BulkOp) error

Jump to

Keyboard shortcuts

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