mongo

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRepos

func InitRepos(ctx context.Context, c *repo.Container, mc *mongo.Client, databaseName string) error

func NewAsset

func NewAsset(client *mongodoc.Client) repo.Asset

func NewConfig

func NewConfig(client *mongodoc.Client, lock repo.Lock) repo.Config

func NewDataset

func NewDataset(client *mongodoc.Client) repo.Dataset

func NewDatasetSchema

func NewDatasetSchema(client *mongodoc.Client) repo.DatasetSchema

func NewLayer

func NewLayer(client *mongodoc.Client) repo.Layer

func NewLock added in v0.3.0

func NewLock(c *mongo.Collection) (repo.Lock, error)

func NewPlugin

func NewPlugin(client *mongodoc.Client) repo.Plugin

func NewProject

func NewProject(client *mongodoc.Client) repo.Project

func NewProperty

func NewProperty(client *mongodoc.Client) repo.Property

func NewPropertySchema

func NewPropertySchema(client *mongodoc.Client) repo.PropertySchema

func NewScene

func NewScene(client *mongodoc.Client) repo.Scene

func NewSceneLock

func NewSceneLock(client *mongodoc.Client) repo.SceneLock

func NewTag

func NewTag(client *mongodoc.Client) repo.Tag

func NewTeam

func NewTeam(client *mongodoc.Client) repo.Team

func NewTransaction

func NewTransaction(client *mongodoc.Client) repo.Transaction

func NewUser

func NewUser(client *mongodoc.Client) repo.User

Types

type Lock added in v0.3.0

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

func (*Lock) Lock added in v0.3.0

func (r *Lock) Lock(ctx context.Context, name string) error

func (*Lock) Unlock added in v0.3.0

func (r *Lock) Unlock(ctx context.Context, name string) error

type Transaction

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

func (*Transaction) Begin

func (t *Transaction) Begin() (repo.Tx, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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