providers

package
v0.0.0-...-0d10b55 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyTransport

func NewProxyTransport(scheme, host string) *http.Transport

func WrapGzipTransport

func WrapGzipTransport(t http.RoundTripper) http.RoundTripper

Types

type APIClient

type APIClient interface {
	Request(meth, endpoint string) (*http.Response, error)
}

type Doer

type Doer interface {
	Do(r *http.Request) (*http.Response, error)
}

type GzipTransport

type GzipTransport struct {
	http.RoundTripper
}

func (*GzipTransport) RoundTrip

func (g *GzipTransport) RoundTrip(r *http.Request) (*http.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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