utils

package
v0.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 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

func CheckDNS(domain string) error

func CheckNetwork

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

func GatherCallFrames

func GatherCallFrames() string

func GetEncodedToken

func GetEncodedToken(username string, password string) string

func ResolvePort

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

func StrToDurationOr

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

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