Documentation ¶
Index ¶
- type Controller
- func (this *Controller) Bulk(userid string, bulk model.BulkRequest) (result model.BulkResponse, err error)
- func (this *Controller) Count(userid string, query model.VariablesQueryOptions) (model.Count, error)
- func (this *Controller) Delete(userid string, key string) error
- func (this *Controller) DeleteProcessDefinition(userid string, definitionId string) error
- func (this *Controller) DeleteProcessInstance(userid string, instanceId string) error
- func (this *Controller) Get(userid string, key string) (res model.VariableWithUnixTimestamp, err error)
- func (this *Controller) GetMetrics() *metrics.Metrics
- func (this *Controller) List(userid string, query model.VariablesQueryOptions) (result []model.VariableWithUnixTimestamp, err error)
- func (this *Controller) Set(userid string, variable model.Variable) error
- type Database
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) 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)
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) }
Click to show internal directories.
Click to hide internal directories.