utils

package
v0.11.0-test2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDNS added in v0.7.0

func CheckDNS(domain string) error

func CheckNetwork added in v0.7.0

func CheckNetwork(host, port string, timeout time.Duration) error

func GatherCallFrames added in v0.6.1

func GatherCallFrames() string

func GetEncodedToken added in v0.6.0

func GetEncodedToken(username string, password string) string

func ResolvePort added in v0.7.0

func ResolvePort(port string, schema string) (string, error)

func StrToDurationOr added in v0.10.0

func StrToDurationOr(text string, defaultValue time.Duration) (time.Duration, error)

Return defaultValue if text is empty, or try to convert it to time.Duration

func StrToIntOr added in v0.10.0

func StrToIntOr(text string, defaultValue int) (int, error)

Return defaultValue if text is empty, or try to convert it to int

Types

This section is empty.

Jump to

Keyboard shortcuts

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