interfaces

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camunda

type Camunda interface {
	StopProcessInstance(id string, tenantId string) (err error)
	GetProcessName(id string, tenantId string) (string, error)
	StartProcess(processDefinitionId string, userId string) (err error)
	GetIncidents() (result []messages.CamundaIncident, err error)
}

type CamundaFactory

type CamundaFactory interface {
	Get(ctx context.Context, config configuration.Config) (Camunda, error)
}

type Controller

type Controller interface {
	HandleIncidentMessage(incident []byte) error
}

type Database

type Database interface {
	DeleteByDefinitionId(id string) error
	SaveIncident(incident messages.Incident) error
	DeleteIncidentByInstanceId(id string) error
	SaveOnIncident(handler messages.OnIncident) error
	GetOnIncident(definitionId string) (incident messages.OnIncident, exists bool, err error)
}

type DatabaseFactory

type DatabaseFactory interface {
	Get(ctx context.Context, config configuration.Config) (Database, error)
}

type SourceFactory

type SourceFactory interface {
	Start(ctx context.Context, config configuration.Config, control Controller, runtimeErrorHandler func(err error)) (err error)
}

Jump to

Keyboard shortcuts

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