util

package
v0.11.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const JSON_EXTENSION = ".json"

Variables

This section is empty.

Functions

func GetDuration

func GetDuration(start time.Time, end time.Time) time.Duration

func GetIdentityOrFallback added in v0.11.2

func GetIdentityOrFallback(c *gin.Context, conf config.Middleware) string

func GetSchemaNameFromRequest added in v0.10.6

func GetSchemaNameFromRequest(c *gin.Context, fallback string) string

func HttpHeadersToMap added in v0.11.0

func HttpHeadersToMap(c *gin.Context) map[string]interface{}

func MapUrlParams added in v0.1.27

func MapUrlParams(c *gin.Context) map[string]interface{}

Coerce query params to a map[string]interface{}. Only use the first val of each key.

func Md5

func Md5(s string) string

func Pprint added in v0.1.24

func Pprint(i interface{})

func QueryToMap added in v0.10.0

func QueryToMap(v url.Values) map[string]interface{}

func Stringify added in v0.1.16

func Stringify(i interface{}) string

func StructToMap

func StructToMap(v interface{}) map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL