Documentation ¶
Index ¶
- Constants
- func GetDuration(start time.Time, end time.Time) time.Duration
- func GetIdentityOrFallback(c *gin.Context, conf config.Middleware) string
- func GetSchemaNameFromRequest(c *gin.Context, fallback string) string
- func HttpHeadersToMap(c *gin.Context) map[string]interface{}
- func MapUrlParams(c *gin.Context) map[string]interface{}
- func Md5(s string) string
- func Pprint(i interface{})
- func QueryToMap(v url.Values) map[string]interface{}
- func Stringify(i interface{}) string
- func StructToMap(v interface{}) map[string]interface{}
Constants ¶
View Source
const JSON_EXTENSION = ".json"
Variables ¶
This section is empty.
Functions ¶
func GetIdentityOrFallback ¶
func GetIdentityOrFallback(c *gin.Context, conf config.Middleware) string
func HttpHeadersToMap ¶
func MapUrlParams ¶
Coerce query params to a map[string]interface{}. Only use the first val of each key.
func QueryToMap ¶
func StructToMap ¶
func StructToMap(v interface{}) map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.