Documentation
¶
Index ¶
- func CORSMiddleware(router *gin.Engine)
- func GetConfig(name string, type_ string) (vv interface{})
- func GetConfigBool(name string) bool
- func GetConfigInt(name string) int64
- func GetConfigInt16(name string) int16
- func GetConfigInt32(name string) int32
- func GetConfigInt8(name string) int8
- func GetConfigUint(name string) uint64
- func GetConfigUint16(name string) uint16
- func GetConfigUint32(name string) uint32
- func GetConfigUint8(name string) uint8
- func RandString(length int, ascii, digits, punctuation bool) string
- type CommonErrorResp
- type MiddlewareType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func GetConfigBool ¶
func GetConfigInt ¶
func GetConfigInt16 ¶
func GetConfigInt32 ¶
func GetConfigInt8 ¶
func GetConfigUint ¶
func GetConfigUint16 ¶
func GetConfigUint32 ¶
func GetConfigUint8 ¶
func RandString ¶
Types ¶
type CommonErrorResp ¶
type CommonErrorResp struct {
Msg string `json:"error"`
}
type MiddlewareType ¶
type MiddlewareType func() gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.