Documentation ¶
Index ¶
Constants ¶
View Source
const ( BasePath = "/api/v1/" DocPath = "/api/v1/doc" )
Variables ¶
View Source
var Config = &ginSwagger.Config{ URL: "doc.json", DocExpansion: "list", InstanceName: "appapi", Title: "AppAPI", DefaultModelsExpandDepth: 0, DeepLinking: true, PersistAuthorization: false, Oauth2DefaultClientID: "", }
View Source
var HandlerProviderSet = wire.NewSet( email.EmailRouterSet, system.SystemRouterSet, user.UserRouterSet, wire.Struct(new(Router), "*"), )
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { Email email.HandlerRouter System system.HandlerRouter User user.HandlerRouter }
Router has no influence, just for wire injection
func SetupHandler ¶
func SetupHandler(cfg *conf.AppConf, httpserver *gin.Engine, datasource *data.DataSource) (Router, func(), error)
SetupHandler http handlers
Click to show internal directories.
Click to hide internal directories.