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