Documentation ¶
Index ¶
- Constants
- func GetDuration(start time.Time, end time.Time) time.Duration
- func GetIdentityOrFallback(c *gin.Context, conf config.Identity) string
- func GetSchemaNameFromRequest(c *gin.Context, fallback string) string
- func HttpHeadersToMap(c *gin.Context) map[string]interface{}
- func MapUrlParams(c *gin.Context, excludeParams ...string) map[string]interface{}
- func Md5(s string) string
- func Pprint(i interface{}) string
- func QueryToMap(v url.Values) map[string]interface{}
- func Stringify(i interface{}) string
- func StructToMap(v interface{}) (map[string]interface{}, error)
Constants ¶
View Source
const JSON_EXTENSION = ".json"
Variables ¶
This section is empty.
Functions ¶
func GetDuration ¶
GetDuration returns the associated duration between two times
func GetIdentityOrFallback ¶
func HttpHeadersToMap ¶
HttpHeadersToMap returns a map of http headers, but treats single-element headers as strings instead of slices of length 1
func MapUrlParams ¶
Coerce query params to a map[string]interface{}. Only use the first val of each key.
func QueryToMap ¶
func StructToMap ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.