Documentation ¶
Index ¶
- func CombineErrors(e1 error, e2 error) error
- func CreateDialContext(dnsServer string) func(ctx context.Context, network, address string) (net.Conn, error)
- func CreateHttpClient(insecure bool, writeBufSize int, readBufSize int) *http.Client
- func GenerateRandomBytes(len int) ([]byte, error)
- func HumanizeBytes(s float64) string
- func InputPassphrase() (string, error)
- func IsTimeoutErr(err error) bool
- func NewDuplexConn(d io.ReadWriteCloser) *duplexConn
- func RandomHexString() (string, error)
- func UrlJoin(s string, p ...string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineErrors ¶ added in v0.8.0
func CreateDialContext ¶
func CreateDialContext(dnsServer string) func(ctx context.Context, network, address string) (net.Conn, error)
Set default resolver for HTTP client
func CreateHttpClient ¶
Generate HTTP client
func GenerateRandomBytes ¶ added in v0.8.0
func HumanizeBytes ¶
func InputPassphrase ¶ added in v0.8.0
func IsTimeoutErr ¶ added in v0.9.0
func NewDuplexConn ¶ added in v0.9.0
func NewDuplexConn(d io.ReadWriteCloser) *duplexConn
func RandomHexString ¶ added in v0.9.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.