mock

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: MIT Imports: 11 Imported by: 5

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 MockMulti added in v1.6.0

func MockMulti(bs []*api.API) []MockTransactions

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