transport

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOneWayTLSTransport

func NewOneWayTLSTransport(caFile string, skipVerify bool) (*http.Transport, error)

NewOneWayTLSTransport create an one-way SSL HTTP transport object by given certificate file.

func NewTwoWayTLSTransport

func NewTwoWayTLSTransport(caFile string, clientCertFile string, clientKeyFile string) (*http.Transport, error)

NewTwoWayTLSTransport create a two-way SSL HTTP transport object by given certificate file and client certificate and private key file.

func Transport

func Transport(tlsConfig *tls.Config) *http.Transport

Types

This section is empty.

Jump to

Keyboard shortcuts

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