service

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionService

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

func NewActionService

func NewActionService(db interfaces.Database) *ActionService

func (*ActionService) Fetch

func (x *ActionService) Fetch(ctx *model.Context, wfID types.WorkflowID) ([]model.ActionRecord, error)

type Services

type Services struct {
	Workflow *WorkflowService
}

func New

func New(db interfaces.Database) *Services

type Workflow

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

func (*Workflow) AddAction

func (x *Workflow) AddAction(ctx *model.Context, action *model.Action) error

func (*Workflow) UpdateLastAttrs

func (x *Workflow) UpdateLastAttrs(ctx *model.Context, attrs model.Attributes) error

type WorkflowService

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

func NewWorkflowService

func NewWorkflowService(db interfaces.Database) *WorkflowService

func (*WorkflowService) Create

func (x *WorkflowService) Create(ctx *model.Context, alert model.Alert) (*Workflow, error)

func (*WorkflowService) Get

func (x *WorkflowService) Get(ctx *model.Context, offset, limit *int) ([]model.WorkflowRecord, error)

func (*WorkflowService) Lookup

Jump to

Keyboard shortcuts

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