lib

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrgNameKey     = "org_name"
	DiceOrgNameKey = "dice_org_name"
	DiceWorkspace  = "dice_workspace"
)

Variables

This section is empty.

Functions

func AvailableCPUs

func AvailableCPUs() int

func IsJSONArray

func IsJSONArray(b []byte) bool

func NormalizeKey

func NormalizeKey(key string) string

func RandomDuration

func RandomDuration(interval, jitter time.Duration) time.Duration

func ReadBody

func ReadBody(req *http.Request) ([]byte, error)

read request's body based on Content-Encoding Header

func RegexGroupMap

func RegexGroupMap(pattern *regexp.Regexp, s string) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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