Documentation ¶ Index ¶ Variables func NewRouter(a *api.API) *gin.Engine type API func NewAPI(lc fx.Lifecycle, shutdowner fx.Shutdowner, router *gin.Engine, ...) (*API, error) Constants ¶ This section is empty. Variables ¶ View Source var Module = fx.Module("api", fx.Provide( fx.Private, api.New, ), fx.Provide( NewRouter, ), fx.Provide( NewAPI, ), ) Functions ¶ func NewRouter ¶ func NewRouter(a *api.API) *gin.Engine Types ¶ type API ¶ type API struct{} func NewAPI ¶ func NewAPI( lc fx.Lifecycle, shutdowner fx.Shutdowner, router *gin.Engine, cfg config.Config, logger *zerolog.Logger, ) (*API, error) Source Files ¶ View all Source files api.go router.go Directories ¶ Show internal Expand all Path Synopsis handlers Click to show internal directories. Click to hide internal directories.