Versions in this module Expand all Collapse all v1 v1.0.0 Oct 21, 2022 Changes in this version + const InsecureTransport + const SecureTransport + func AddTracingWithGlobalTransport() + func GetHTTPTransport(opts ...TransportOption) http.RoundTripper + func GetInternalCertPair() (tls.Certificate, error) + func GetInternalTLSConfig() (*tls.Config, error) + func InternalEnableVerifyClientCert() bool + func InternalTLSEnabled() bool + func NewServerTLSConfig() *tls.Config + func NewTransport(opts ...func(*http.Transport)) http.RoundTripper + func SendError(w http.ResponseWriter, err error) + func TestTCPConn(addr string, timeout, interval int) error + func WithIdleconnectionTimeout(idleConnectionTimeout time.Duration) func(*http.Transport) + func WithInsecureSkipVerify(skipVerify bool) func(*http.Transport) + func WithInternalTLSConfig() func(*http.Transport) + func WithMaxIdleConns(maxIdleConns int) func(*http.Transport) + type Client struct + func NewClient(c *http.Client, modifiers ...modifier.Modifier) *Client + func (c *Client) Delete(url string) error + func (c *Client) Do(req *http.Request) (*http.Response, error) + func (c *Client) Get(url string, v ...interface{}) error + func (c *Client) GetAndIteratePagination(endpoint string, v interface{}) error + func (c *Client) GetClient() *http.Client + func (c *Client) Head(url string) error + func (c *Client) Post(url string, v ...interface{}) error + func (c *Client) Put(url string, v ...interface{}) error + type Error struct + Code int + Message string + func (e *Error) Error() string + func (e *Error) String() string + type TransportConfig struct + Insecure bool + type TransportOption func(*TransportConfig) + func WithInsecure(skipVerify bool) TransportOption