blueprints

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 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 {
	CreateBlueprint(c *gin.Context)
	GetJudgementPrerequisites(c *gin.Context)
	GetBlueprint(c *gin.Context)
	GetBlueprints(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) CreateBlueprint

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

func (*DefaultController) GetBlueprint

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

func (*DefaultController) GetBlueprints

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

func (*DefaultController) GetJudgementPrerequisites

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

type InitBlueprintGroupFn

type InitBlueprintGroupFn func(r *gin.RouterGroup)

func CreateInitControllersFn

func CreateInitControllersFn(pc Controller) InitBlueprintGroupFn

type Repository

type Repository interface {
	CreateBlueprint(definition string) (p *models.Blueprint, err error)
	GetBlueprint(id uint64) (*models.Blueprint, error)
	GetBlueprints() ([]*models.Blueprint, error)
}

func NewRepository

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

type Service

type Service interface {
	CreateBlueprint(definition string) (p *models.Blueprint, err error)
	GetBlueprint(id uint64) (p *models.Blueprint, err error)
	GetBlueprints() (p []*models.Blueprint, 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