Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ProviderProductionSet provides all middleware for production. ProviderProductionSet = wire.NewSet(ProvideAllProductionMiddleware, corsmiddleware.ProviderProductionSet) )
Functions ¶
func ProvideAllProductionMiddleware ¶
func ProvideAllProductionMiddleware(log *log.Log, cors *corsmiddleware.CORSMiddleware) []gin.HandlerFunc
ProvideAllProductionMiddleware provides all the middleware that will be used in production.
func PublicErrorHandler ¶
func PublicErrorHandler() gin.HandlerFunc
PublicErrorHandler middleware handles public errors for the Gin framework.
Types ¶
type APIErrorJSON ¶
type APIErrorJSON struct {
Error string `json:"error"`
}
APIErrorJSON represents an error message.
Click to show internal directories.
Click to hide internal directories.