Versions in this module Expand all Collapse all v0 v0.45.1 Nov 12, 2022 v0.45.0 Nov 12, 2022 Changes in this version + func CanonicalAddr(host string, port int) (addr string) + func CanonicalHost(host string) (string, error) + func GenerateResponseErrorString(summary string, err error, detailed bool) string + func GetAuthKey(token string, timestamp int64) (key string) + func OkResponse() *http.Response + func ParseBasicAuth(auth string) (username, password string, ok bool) + func ParseRangeNumbers(rangeStr string) (numbers []int64, err error) + func ProxyUnauthorizedResponse() *http.Response + func RandID() (id string, err error) + func RandIDWithLen(idLen int) (id string, err error) + func RandomSleep(duration time.Duration, minRatio, maxRatio float64) time.Duration