Documentation ¶
Index ¶
- func ChainHandler(handlers ...http.Handler) http.Handler
- func CompareHeaderValuesHandler(t *testing.T, key string, values []string) http.Handler
- func CompareJSONBodyHandler(t *testing.T, params interface{}) http.Handler
- func CompareMethodHandler(t *testing.T, method string) http.Handler
- func ComparePathHandler(t *testing.T, path string) http.Handler
- func CompareQueryHandler(t *testing.T, want url.Values) http.Handler
- type HandlerGenerator
- func (g *HandlerGenerator) CompareHeaderValues(key string, values []string) http.Handler
- func (g *HandlerGenerator) CompareJSONBody(jsonBody interface{}) http.Handler
- func (g *HandlerGenerator) CompareMethod(method string) http.Handler
- func (g *HandlerGenerator) ComparePath(path string) http.Handler
- func (g *HandlerGenerator) CompareQuery(want url.Values) http.Handler
- type OnFailure
- type TError
- type TFatal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareJSONBodyHandler ¶
Types ¶
type HandlerGenerator ¶
type HandlerGenerator struct {
OnFailure OnFailure
}
func (*HandlerGenerator) CompareHeaderValues ¶
func (g *HandlerGenerator) CompareHeaderValues(key string, values []string) http.Handler
func (*HandlerGenerator) CompareJSONBody ¶
func (g *HandlerGenerator) CompareJSONBody(jsonBody interface{}) http.Handler
func (*HandlerGenerator) CompareMethod ¶
func (g *HandlerGenerator) CompareMethod(method string) http.Handler
func (*HandlerGenerator) ComparePath ¶
func (g *HandlerGenerator) ComparePath(path string) http.Handler
func (*HandlerGenerator) CompareQuery ¶ added in v0.3.0
func (g *HandlerGenerator) CompareQuery(want url.Values) http.Handler
Click to show internal directories.
Click to hide internal directories.