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 { CreateProgram(c *gin.Context) GetProgram(c *gin.Context) GetPrograms(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) CreateProgram ¶
func (pc *DefaultController) CreateProgram(c *gin.Context)
func (*DefaultController) GetProgram ¶
func (pc *DefaultController) GetProgram(c *gin.Context)
func (*DefaultController) GetPrograms ¶
func (pc *DefaultController) GetPrograms(c *gin.Context)
type InitProgramGroupFn ¶
type InitProgramGroupFn func(r *gin.RouterGroup)
func CreateInitControllersFn ¶
func CreateInitControllersFn(pc Controller) InitProgramGroupFn
Click to show internal directories.
Click to hide internal directories.