Documentation ¶
Index ¶
- func ContainsPort(portRanges [][2]int64, port int64) bool
- func GetAuthKey(token string, timestamp int64) (key string)
- func GetPortRanges(rangeStr string) (portRanges [][2]int64, err error)
- func PortRangesCut(portRanges [][2]int64, port int64) [][2]int64
- 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 ContainsPort ¶
func GetAuthKey ¶
func GetPortRanges ¶
for example: rangeStr is "1000-2000,2001,2002,3000-4000", return an array as port ranges.
func PortRangesCut ¶
func RandIdWithLen ¶
RandIdWithLen return a rand string with idLen length.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.