httpmock

package module
v0.0.0-...-5528bf3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

README

Unit Test Outbound HTTP Requests in Golang

This is a demonstration of the HTTP mock server features in my go-kit repository.

It serves as a complement to this article on my website.

But that article is generated from the content of tutorial.adoc in this repository, so if you want, you can skip the website and go straight for the source and read it here.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternalFailure = errors.New("we did something wrong")
	ErrUpstreamFailure = errors.New("someone else did something wrong")
)

Functions

This section is empty.

Types

type FooClient

type FooClient struct {
	// contains filtered or unexported fields
}

func NewFooClient

func NewFooClient(url, username, password string) *FooClient

func (*FooClient) DoStuff

func (fc *FooClient) DoStuff(param string) (string, error)

Jump to

Keyboard shortcuts

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