processes

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Controller

type Controller interface {
	GetProcesses(c *gin.Context)
	GetProcess(c *gin.Context)
	UpdateProcess(c *gin.Context)
	ReserveProcess(c *gin.Context)
}

func NewController

func NewController(logger *zap.Logger, s Service) Controller

type DefaultController

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

func (*DefaultController) GetProcess

func (d *DefaultController) GetProcess(c *gin.Context)

func (*DefaultController) GetProcesses added in v0.0.12

func (d *DefaultController) GetProcesses(c *gin.Context)

func (*DefaultController) ReserveProcess added in v0.0.12

func (d *DefaultController) ReserveProcess(c *gin.Context)

func (*DefaultController) UpdateProcess added in v0.0.12

func (d *DefaultController) UpdateProcess(c *gin.Context)

type InitProcessGroupFn

type InitProcessGroupFn func(r *gin.RouterGroup)

func CreateInitControllersFn

func CreateInitControllersFn(pc Controller) InitProcessGroupFn

type Service

type Service interface {
	GetProcesses(processType string) (process []*models.Process, err error)
	GetProcess(processId string) (process *models.Process, err error)
	UpdateProcess(processId, warning, error string, outputs *models.Slots) (process *models.Process, err error)
	ReserveProcess(processId string) (token string, locked bool, err error)
}

func NewService

func NewService(logger *zap.Logger, manager manager.ProcessManager) Service

Jump to

Keyboard shortcuts

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