client

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGetGolang

func DefaultGetGolang() error

DefaultGetGolang uses the default client to get golang.org

func DoOps

func DoOps(c *http.Client) error

DoOps takes a client, then fetches google.com

func Setup

func Setup(isSecure, nop bool) *http.Client

Setup configures our client and redefines the global DefaultClient

Types

type Controller

type Controller struct {
	*http.Client
}

Controller embeds an http.Client and uses it internally

func (*Controller) DoOps

func (c *Controller) DoOps() error

DoOps with a controller object

type NopTransport

type NopTransport struct {
}

NopTransport is a No-Op Transport

func (*NopTransport) RoundTrip

func (n *NopTransport) RoundTrip(*http.Request) (*http.Response, error)

RoundTrip Implements RoundTripper interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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