Documentation ¶
Index ¶
- Variables
- func BindErrorMessage(err error) string
- func ConvertArgsInt64(args []int64) []interface{}
- func ConvertArgsString(args []string) []interface{}
- func DataStoresMiddleware(mbdDB *sql.DB) gin.HandlerFunc
- func ErrorHandlingMiddleware() gin.HandlerFunc
- func Filter(ss []string, test func(string) bool) []string
- func InClause(prefix string, list []string) string
- func InitConfig(cfgFile string, cfgPath string) error
- func Int64InSlice(a int64, list []int64) (ret bool)
- func IntersectSorted(first []string, second []string) (ret []string)
- func LoggerMiddleware() gin.HandlerFunc
- func MaxInt(x, y int) int
- func MinInt(x, y int) int
- func Must(err error)
- func NullStringSliceToStringSlice(in []sql.NullString) []string
- func PrintProfile(reset bool)
- func Profile(name string, duration time.Duration)
- func RecoveryMiddleware() gin.HandlerFunc
- func StringInSlice(a string, list []string) (ret bool)
- func ToInterfaceSlice(s interface{}) []interface{}
- func UnionSorted(first []string, second []string) (ret []string)
- func ValidationErrorMessage(e validator.FieldError) string
- type Date
- type ProfileData
Constants ¶
This section is empty.
Variables ¶
View Source
var PROFILE = make(map[string]*ProfileData)
View Source
var PROFILE_MUTEX = sync.Mutex{}
Functions ¶
func BindErrorMessage ¶
func ConvertArgsInt64 ¶
func ConvertArgsInt64(args []int64) []interface{}
func ConvertArgsString ¶
func ConvertArgsString(args []string) []interface{}
func DataStoresMiddleware ¶
func DataStoresMiddleware(mbdDB *sql.DB) gin.HandlerFunc
Set MDB in context.
func InitConfig ¶
func Int64InSlice ¶
func IntersectSorted ¶
func LoggerMiddleware ¶
func LoggerMiddleware() gin.HandlerFunc
func NullStringSliceToStringSlice ¶
func NullStringSliceToStringSlice(in []sql.NullString) []string
func PrintProfile ¶
func PrintProfile(reset bool)
func StringInSlice ¶
func ToInterfaceSlice ¶
func ToInterfaceSlice(s interface{}) []interface{}
func UnionSorted ¶
func ValidationErrorMessage ¶
func ValidationErrorMessage(e validator.FieldError) string
Types ¶
type Date ¶
A time.Time like structure with date part only JSON marshalling
func (*Date) MarshalJSON ¶
func (*Date) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.