mock

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockHandler

func MockHandler(ms MockTransactions) http.Handler

Types

type MockTransaction

type MockTransaction struct {
	Path        string
	Pattern     string
	Method      string
	StatusCode  int
	ContentType string
	Body        string
}

func Mock

func Mock(b *api.API) []*MockTransaction

type MockTransactions

type MockTransactions []*MockTransaction

func (MockTransactions) Router

func (ms MockTransactions) Router() *mockRouter

Jump to

Keyboard shortcuts

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