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 ¶ added in v0.11.2
func GetIdentityOrFallback(c *gin.Context, conf config.Middleware) string
func GetSchemaNameFromRequest ¶ added in v0.10.6
func HttpHeadersToMap ¶ added in v0.11.0
func MapUrlParams ¶ added in v0.1.27
Coerce query params to a map[string]interface{}. Only use the first val of each key.
func QueryToMap ¶ added in v0.10.0
func StructToMap ¶
func StructToMap(v interface{}) map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.