Documentation
¶
Index ¶
- func InitStruct(s interface{}, initFn func(name string, i interface{}) error) error
- func SetupRoute(router *gin.Engine, controllers *Controllers) *gin.Engine
- type App
- func (a *App) Boot() error
- func (app *App) CORS(r *gin.Engine, configCORS string) (*gin.Engine, error)
- func (app *App) InitRouter(workDir string) (*gin.Engine, error)
- func (app *App) SetSecureHTTP(r *gin.Engine, config *contract.Config) *gin.Engine
- func (app *App) SetTrustProxies(r *gin.Engine, trustProxy string) (*gin.Engine, error)
- type Controllers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitStruct ¶
/ InitStruct reflect fields in struct and run initializer function
func SetupRoute ¶
func SetupRoute(router *gin.Engine, controllers *Controllers) *gin.Engine
Types ¶
type Controllers ¶
type Controllers struct {
GetHealth *controller.GetHealthController
}
func NewController ¶
func NewController(a *App) *Controllers
Click to show internal directories.
Click to hide internal directories.