Documentation ¶
Index ¶
- func CanonicalAddr(host string, port int) (addr string)
- func GenerateResponseErrorString(summary string, err error, detailed bool) string
- func GetAuthKey(token string, timestamp int64) (key string)
- func GetHostFromAddr(addr string) (host string)
- func OkResponse() *http.Response
- func ParseRangeNumbers(rangeStr string) (numbers []int64, err error)
- func RandID() (id string, err error)
- func RandIDWithLen(idLen int) (id string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalAddr ¶ added in v0.15.0
func GenerateResponseErrorString ¶ added in v0.32.0
func GetAuthKey ¶
func GetHostFromAddr ¶ added in v0.32.0
func OkResponse ¶ added in v0.32.0
func ParseRangeNumbers ¶ added in v0.16.0
func RandIDWithLen ¶ added in v0.34.0
RandIDWithLen return a rand string with idLen length.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.