utils

package
v1.93.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTime added in v1.91.0

func GetTime(s string) (time.Time, error)

GetTime returns time from the given string.

func TLSConfig

func TLSConfig(insecureSkipVerify bool) *tls.Config

TLSConfig creates tls.Config object from provided arguments

func Transport

func Transport(URL string, insecureSkipVerify bool) *http.Transport

Transport creates http.Transport object based on provided URL. Returns Transport with TLS configuration if URL contains `https` prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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