mux

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHandlerMapper added in v0.2.0

type MockHandlerMapper struct {
	mock.Mock
}

MockHandlerMapper is for mocking

func (*MockHandlerMapper) Map added in v0.2.0

Map is for mocking

type MockIOMapper added in v0.2.0

type MockIOMapper struct {
	mock.Mock
}

MockIOMapper is for mocking

func (*MockIOMapper) MapRequest added in v0.2.0

func (i *MockIOMapper) MapRequest(req *goHttp.Request) (*adapterHttp.Request, error)

MapRequest is for mocking

func (*MockIOMapper) MapResponse added in v0.2.0

func (i *MockIOMapper) MapResponse(adapterRes *adapterHttp.Response, goRes goHttp.ResponseWriter)

MapResponse is for mocking

type MockWrapper added in v0.2.0

type MockWrapper struct {
	mock.Mock
}

MockWrapper is for mocking

func (*MockWrapper) NewRouter added in v0.2.0

func (w *MockWrapper) NewRouter() muxDriver.Router

NewRouter is for mocking

func (*MockWrapper) Vars added in v0.2.0

func (w *MockWrapper) Vars(req *goHttp.Request) map[string]string

Vars is for mocking

type RouteMock

type RouteMock struct {
	mock.Mock
}

RouteMock is for mocking

func (*RouteMock) Methods

func (r *RouteMock) Methods(methods ...string) *mux.Route

Methods is for mocking

type RouterMock

type RouterMock struct {
	mock.Mock
}

RouterMock is for mocking

func (*RouterMock) HandleFunc

func (r *RouterMock) HandleFunc(pathPattern string, handler muxDriver.Handler) muxDriver.Route

HandleFunc is for mocking

func (*RouterMock) ServeHTTP

func (r *RouterMock) ServeHTTP(res goHttp.ResponseWriter, req *goHttp.Request)

ServeHTTP is for mocking

Jump to

Keyboard shortcuts

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