util

package
v0.15.13 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.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

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

func GetSchemaNameFromRequest

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

func HttpHeadersToMap

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

func MapUrlParams

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

func Pprint(i interface{})

func QueryToMap

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

func Stringify

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