Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(CreateInitControllersFn, NewController, NewService, )
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(jc 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 manager2.ProcessManager) Service
Click to show internal directories.
Click to hide internal directories.