mongo

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateCollections = []func(db *Mongo) error{}
View Source
var VariableBson = getBsonFieldObject[model.VariableWithUser]()

Functions

This section is empty.

Types

type Mongo

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

func New

func New(ctx context.Context, wg *sync.WaitGroup, config configuration.Config) (*Mongo, error)

func (*Mongo) CountVariables

func (this *Mongo) CountVariables(userId string, query model.VariablesQueryOptions) (result model.Count, err error)

func (*Mongo) DeleteVariable

func (this *Mongo) DeleteVariable(userId string, key string) error

func (*Mongo) DeleteVariablesOfProcessDefinition

func (this *Mongo) DeleteVariablesOfProcessDefinition(definitionId string) error

func (*Mongo) DeleteVariablesOfProcessInstance

func (this *Mongo) DeleteVariablesOfProcessInstance(instanceId string) error

func (*Mongo) GetVariable

func (this *Mongo) GetVariable(userId string, key string) (result model.VariableWithUser, err error)

func (*Mongo) ListVariables

func (this *Mongo) ListVariables(userId string, query model.VariablesQueryOptions) (result []model.VariableWithUnixTimestamp, err error)

func (*Mongo) SetVariable

func (this *Mongo) SetVariable(variable model.VariableWithUser) error

type QueryOptions

type QueryOptions interface {
	GetLimit() int64
	GetOffset() int64
	GetSort() string
}

Jump to

Keyboard shortcuts

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