processes

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Controller

type Controller interface {
	CreateProcess(c *gin.Context)
	GetProcess(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) CreateProcess

func (pc *DefaultController) CreateProcess(c *gin.Context)

func (*DefaultController) GetProcess

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

type InitProcessGroupFn

type InitProcessGroupFn func(r *gin.RouterGroup)

func CreateInitControllersFn

func CreateInitControllersFn(pc Controller) InitProcessGroupFn

type Repository

type Repository interface {
	CreateProcess(definition string) (p *models.Process, err error)
	GetProcess(id uint64) (*models.Process, error)
}

func NewRepository

func NewRepository(logger *zap.Logger, db *gorm.DB) Repository

type Service

type Service interface {
	CreateProcess(definition string) (p *models.Process, err error)
	GetProcess(id uint64) (p *models.Process, err error)
}

func NewService

func NewService(logger *zap.Logger, Repository Repository) Service

Jump to

Keyboard shortcuts

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