util

package
v0.32.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalAddr

func CanonicalAddr(host string, port int) (addr string)

func GenerateResponseErrorString

func GenerateResponseErrorString(summary string, err error, detailed bool) string

func GetAuthKey

func GetAuthKey(token string, timestamp int64) (key string)

func GetHostFromAddr

func GetHostFromAddr(addr string) (host string)

func OkResponse

func OkResponse() *http.Response

func ParseRangeNumbers

func ParseRangeNumbers(rangeStr string) (numbers []int64, err error)

func RandId

func RandId() (id string, err error)

RandId return a rand string used in frp.

func RandIdWithLen

func RandIdWithLen(idLen int) (id string, err error)

RandIdWithLen return a rand string with idLen length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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