Help us shape the future of Go! Take the 2026 Go Developer Survey

service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 8 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

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 context.Context, action *model.Action) error

func (*Workflow) UpdateLastAttrs

func (x *Workflow) UpdateLastAttrs(ctx context.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 context.Context, alert model.Alert) (*Workflow, error)

func (*WorkflowService) Get

func (x *WorkflowService) Get(ctx context.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