mocks

package
v0.0.0-...-2dc964c Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient struct {
	Err       error
	Status    int
	Responses chan string

	Reqs chan HttpRequest
}

func NewHttpClient

func NewHttpClient() *HttpClient

func (*HttpClient) Do

func (c *HttpClient) Do(req *http.Request) (*http.Response, error)

type HttpRequest

type HttpRequest struct {
	Body    string
	Url     string
	Method  string
	Headers http.Header
}

Jump to

Keyboard shortcuts

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