controller

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: 15 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(ctx context.Context, config configuration.Config, camunda interfaces.Camunda, db interfaces.Database, m Metric) (ctrl *Controller, err error)

func (*Controller) CreateIncident

func (this *Controller) CreateIncident(incident messages.Incident) (err error)

func (*Controller) DeleteIncidentByProcessDefinitionId

func (this *Controller) DeleteIncidentByProcessDefinitionId(id string) error

func (*Controller) DeleteIncidentByProcessInstanceId

func (this *Controller) DeleteIncidentByProcessInstanceId(id string) error

func (*Controller) HandleIncidentMessage

func (this *Controller) HandleIncidentMessage(msg []byte) error

func (*Controller) Notify added in v0.0.3

func (this *Controller) Notify(msg notification.Message)

func (*Controller) SetOnIncidentHandler

func (this *Controller) SetOnIncidentHandler(handler messages.OnIncident) error

type Metric

type Metric interface {
	NotifyIncidentMessage()
}

type MsgVersionWrapper

type MsgVersionWrapper struct {
	MsgVersion int64 `json:"msg_version"`
}

type TopicMutex added in v0.0.9

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

func (*TopicMutex) Lock added in v0.0.9

func (this *TopicMutex) Lock(topic string)

func (*TopicMutex) Unlock added in v0.0.9

func (this *TopicMutex) Unlock(topic string)

Jump to

Keyboard shortcuts

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