controller

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(config configuration.Config, db Database) *Controller

func (*Controller) Bulk

func (this *Controller) Bulk(userid string, bulk model.BulkRequest) (result model.BulkResponse, err error)

func (*Controller) Count

func (this *Controller) Count(userid string, query model.VariablesQueryOptions) (model.Count, error)

func (*Controller) Delete

func (this *Controller) Delete(userid string, key string) error

func (*Controller) DeleteProcessDefinition

func (this *Controller) DeleteProcessDefinition(userid string, definitionId string) error

func (*Controller) DeleteProcessInstance

func (this *Controller) DeleteProcessInstance(userid string, instanceId string) error

func (*Controller) Get

func (this *Controller) Get(userid string, key string) (res model.VariableWithUnixTimestamp, err error)

func (*Controller) GetMetrics added in v0.0.2

func (this *Controller) GetMetrics() *metrics.Metrics

func (*Controller) List

func (this *Controller) List(userid string, query model.VariablesQueryOptions) (result []model.VariableWithUnixTimestamp, err error)

func (*Controller) Set

func (this *Controller) Set(userid string, variable model.Variable) error

type Database

type Database interface {
	GetVariable(userId string, key string) (model.VariableWithUser, error)
	SetVariable(variable model.VariableWithUser) error
	DeleteVariable(userId string, key string) error
	ListVariables(userId string, query model.VariablesQueryOptions) ([]model.VariableWithUnixTimestamp, error)
	DeleteVariablesOfProcessDefinition(definitionId string) error
	DeleteVariablesOfProcessInstance(instanceId string) error
	CountVariables(userId string, query model.VariablesQueryOptions) (model.Count, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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