Documentation ¶
Index ¶
- type ActionService
- type Services
- type Workflow
- type WorkflowService
- func (x *WorkflowService) Create(ctx context.Context, alert model.Alert) (*Workflow, error)
- func (x *WorkflowService) Get(ctx context.Context, offset, limit *int) ([]model.WorkflowRecord, error)
- func (x *WorkflowService) Lookup(ctx context.Context, id types.WorkflowID) (*model.WorkflowRecord, error)
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 context.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) UpdateLastAttrs ¶
type WorkflowService ¶
type WorkflowService struct {
// contains filtered or unexported fields
}
func NewWorkflowService ¶
func NewWorkflowService(db interfaces.Database) *WorkflowService
func (*WorkflowService) Get ¶
func (x *WorkflowService) Get(ctx context.Context, offset, limit *int) ([]model.WorkflowRecord, error)
func (*WorkflowService) Lookup ¶
func (x *WorkflowService) Lookup(ctx context.Context, id types.WorkflowID) (*model.WorkflowRecord, error)
Click to show internal directories.
Click to hide internal directories.