status

package
v0.0.0-...-dd30ea9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusDb

type StatusDb struct {
	Base *pg.Db
	// contains filtered or unexported fields
}

func New

func New(db database.Db) *StatusDb

func (*StatusDb) Create

func (t *StatusDb) Create(tx interface{}, item *domain.Status) error

func (*StatusDb) List

func (t *StatusDb) List(tx interface{}, workflow *domain.Workflow) ([]domain.Status, error)

func (*StatusDb) Load

func (t *StatusDb) Load(tx interface{}, id string) (*domain.Status, error)

func (*StatusDb) Remove

func (t *StatusDb) Remove(tx interface{}, id string) (*domain.Status, error)

func (*StatusDb) SetUserDb

func (t *StatusDb) SetUserDb(item *database.User)

func (*StatusDb) Update

func (t *StatusDb) Update(tx interface{}, item *domain.Status) error

func (*StatusDb) UserDb

func (t *StatusDb) UserDb() database.User

func (*StatusDb) WorkflowCreate

func (t *StatusDb) WorkflowCreate(tx interface{}, item *domain.Workflow) error

func (*StatusDb) WorkflowCreateMeta

func (t *StatusDb) WorkflowCreateMeta(tx interface{}, item *domain.Workflow) (*database.WorkflowMeta, error)

func (*StatusDb) WorkflowGrid

func (t *StatusDb) WorkflowGrid(tx interface{}, grid *tecgrid.NgGrid) error

func (*StatusDb) WorkflowList

func (t *StatusDb) WorkflowList(tx interface{}) ([]domain.Workflow, error)

func (*StatusDb) WorkflowLoad

func (t *StatusDb) WorkflowLoad(tx interface{}, id string) (item *domain.Workflow, err error)

func (*StatusDb) WorkflowRemove

func (t *StatusDb) WorkflowRemove(tx interface{}, id string) (*domain.Workflow, error)

func (*StatusDb) WorkflowStepAvailableStatus

func (t *StatusDb) WorkflowStepAvailableStatus(tx interface{}, workflow *domain.Workflow, prevStatus *domain.Status) ([]domain.WorkflowStep, error)

func (*StatusDb) WorkflowStepAvailableUser

func (t *StatusDb) WorkflowStepAvailableUser(tx interface{}, workflow *domain.Workflow, prevStatus *domain.Status) ([]domain.WorkflowStep, error)

func (*StatusDb) WorkflowStepCreate

func (t *StatusDb) WorkflowStepCreate(tx interface{}, item *domain.WorkflowStep) error

func (*StatusDb) WorkflowStepDups

func (t *StatusDb) WorkflowStepDups(tx interface{}, step *domain.WorkflowStep) error

func (*StatusDb) WorkflowStepLoad

func (t *StatusDb) WorkflowStepLoad(tx interface{}, id string) (*domain.WorkflowStep, error)

func (*StatusDb) WorkflowStepMemberAdd

func (t *StatusDb) WorkflowStepMemberAdd(tx interface{}, item *domain.WorkflowStepMember) error

func (*StatusDb) WorkflowStepMemberGroups

func (t *StatusDb) WorkflowStepMemberGroups(tx interface{}, item *domain.WorkflowStep) (selected []domain.Group, unselected []domain.Group, err error)

func (*StatusDb) WorkflowStepMemberLoad

func (t *StatusDb) WorkflowStepMemberLoad(tx interface{}, item *domain.WorkflowStepMember) (*domain.WorkflowStepMember, error)

func (*StatusDb) WorkflowStepMemberRemove

func (t *StatusDb) WorkflowStepMemberRemove(tx interface{}, item *domain.WorkflowStepMember) error

func (*StatusDb) WorkflowStepMemberUsers

func (t *StatusDb) WorkflowStepMemberUsers(tx interface{}, item *domain.WorkflowStep) (selected []domain.User, unselected []domain.User, err error)

func (*StatusDb) WorkflowStepMembers

func (t *StatusDb) WorkflowStepMembers(tx interface{}, item *domain.WorkflowStep) ([]domain.WorkflowStepMember, error)

func (*StatusDb) WorkflowStepRemove

func (t *StatusDb) WorkflowStepRemove(tx interface{}, id string) (*domain.WorkflowStep, error)

func (*StatusDb) WorkflowStepUpdate

func (t *StatusDb) WorkflowStepUpdate(tx interface{}, item *domain.WorkflowStep) error

func (*StatusDb) WorkflowSteps

func (t *StatusDb) WorkflowSteps(tx interface{}, workflow *domain.Workflow) ([]domain.WorkflowStep, error)

func (*StatusDb) WorkflowUpdate

func (t *StatusDb) WorkflowUpdate(tx interface{}, item *domain.Workflow) error

Jump to

Keyboard shortcuts

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