client

package
v0.0.0-...-e5281c0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2013 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(w http.ResponseWriter, hosts []string, query MultiDict, auth *netutils.BasicAuth) error
}

type MultiDict

type MultiDict map[string][]string

func (MultiDict) Add

func (d MultiDict) Add(key string, value string)

type RecordingClient

type RecordingClient struct {
	Hosts []string
	Query MultiDict
	Auth  *netutils.BasicAuth
}

Client used in tests to capture the parameters

func (*RecordingClient) Get

func (c *RecordingClient) Get(w http.ResponseWriter, hosts []string, query MultiDict, auth *netutils.BasicAuth) error

Jump to

Keyboard shortcuts

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