Documentation
¶
Overview ¶
transport package create a http.Transport configured for communicating with Mia-Platform Console
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDebugRoundTripper ¶ added in v0.10.0
func NewDebugRoundTripper(next http.RoundTripper) http.RoundTripper
func NewTransport ¶
func NewTransport(config *Config) (http.RoundTripper, error)
func NewUserAgentRoundTripper ¶
func NewUserAgentRoundTripper(userAgent string, next http.RoundTripper) http.RoundTripper
Types ¶
type AuthorizeWrapperFunc ¶
type AuthorizeWrapperFunc func(rt http.RoundTripper) http.RoundTripper
type Config ¶
type Config struct { // UserAgent is an optional field that specifies the caller of this request. UserAgent string // TLSConfig contains settings to enable transport layer security TLSConfig // AuthorizeWrapper will add authorization header to the wrapped RoundTripper AuthorizeWrapper AuthorizeWrapperFunc // Verbose will add logging function to the call via a wrapper RoundTripper Verbose bool }
Config transport layer configurations for setting up http.Transport
Click to show internal directories.
Click to hide internal directories.