Documentation ¶
Index ¶
- func ConvertArgsInt64(args []int64) []interface{}
- func ConvertArgsString(args []string) []interface{}
- func EnvironmentMiddleware(mbdDB *sql.DB, backendUrls []string, publicOnly bool, baseUrl string) gin.HandlerFunc
- func ErrorHandlingMiddleware() gin.HandlerFunc
- func InitConfig(cfgFile string, cfgPath string) error
- func IsEmpty(s []string) bool
- func Min(x, y int) int
- func Must(err error)
- func RecoveryMiddleware() gin.HandlerFunc
- type ContextProvider
- type HttpError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertArgsInt64 ¶
func ConvertArgsInt64(args []int64) []interface{}
func ConvertArgsString ¶
func ConvertArgsString(args []string) []interface{}
func EnvironmentMiddleware ¶
func EnvironmentMiddleware(mbdDB *sql.DB, backendUrls []string, publicOnly bool, baseUrl string) gin.HandlerFunc
Set required resources for handlers in context
func InitConfig ¶
Types ¶
type ContextProvider ¶ added in v0.1.6
type HttpError ¶
func NewBadRequestError ¶
func NewHttpError ¶
func NewInternalError ¶
func NewNotFoundError ¶
func NewNotFoundError() *HttpError
Click to show internal directories.
Click to hide internal directories.