util

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineErrors added in v0.8.0

func CombineErrors(e1 error, e2 error) error

func CreateDialContext

func CreateDialContext(dnsServer string) func(ctx context.Context, network, address string) (net.Conn, error)

Set default resolver for HTTP client

func CreateHttpClient

func CreateHttpClient(insecure bool, writeBufSize int, readBufSize int) *http.Client

Generate HTTP client

func GenerateRandomBytes added in v0.8.0

func GenerateRandomBytes(len int) ([]byte, error)

func InputPassphrase added in v0.8.0

func InputPassphrase() (string, error)

func IsTimeoutErr added in v0.9.0

func IsTimeoutErr(err error) bool

func NewDuplexConn added in v0.9.0

func NewDuplexConn(d io.ReadWriteCloser) *duplexConn

func RandomHexString added in v0.9.0

func RandomHexString() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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