Documentation ¶
Index ¶
- func CopyCloser(dst io.WriteCloser, src io.ReadCloser)
- func CopyHeader(dst, src http.Header)
- func DisableProxySettings() error
- func Fallback[T comparable](value, nilValue, fallback T) T
- func GenerateCertificate(host string, caKey any, caCert *x509.Certificate) (*tls.Certificate, error)
- func LoadCertificate(host string, caKey any, caCert *x509.Certificate) (certPEM, keyPEM []byte, err error)
- func LoadKeyCert(caKeyPath, caCertPath string) (caKey any, caCert *x509.Certificate, err error)
- func SetProxySettings(proxyServer string) error
- func StringFallback(value, fallback string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyCloser ¶
func CopyCloser(dst io.WriteCloser, src io.ReadCloser)
func CopyHeader ¶
func DisableProxySettings ¶
func DisableProxySettings() error
func Fallback ¶
func Fallback[T comparable](value, nilValue, fallback T) T
func GenerateCertificate ¶
func GenerateCertificate(host string, caKey any, caCert *x509.Certificate) (*tls.Certificate, error)
gen new certificate for host, derived by ca
func LoadCertificate ¶
func LoadCertificate(host string, caKey any, caCert *x509.Certificate) (certPEM, keyPEM []byte, err error)
load certificate from local path
func LoadKeyCert ¶
func LoadKeyCert(caKeyPath, caCertPath string) (caKey any, caCert *x509.Certificate, err error)
load key and cert by given path
func SetProxySettings ¶
func StringFallback ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.