internal

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestHandlerHelper

type RequestHandlerHelper interface {
	Fill(r *http.Request, dst interface{}) error
}

func NewRequestHandlerHelper

func NewRequestHandlerHelper(setter RequestHandlerSetter) RequestHandlerHelper

type RequestHandlerSetter

type RequestHandlerSetter interface {
	Body(value reflect.Value, req *http.Request) error
	Header(value reflect.Value, req *http.Request, header string) error
	Path(value reflect.Value, req *http.Request, path string) error
	Query(value reflect.Value, req *http.Request, query string) error
}

func NewRequestHandlerSetter

func NewRequestHandlerSetter(factory encoder.Factory) RequestHandlerSetter

type RequestHandlerSetterMock

type RequestHandlerSetterMock struct {
	mock.Mock
}

func (*RequestHandlerSetterMock) Body

func (r *RequestHandlerSetterMock) Body(
	value reflect.Value, request *http.Request,
) error

func (*RequestHandlerSetterMock) Header

func (r *RequestHandlerSetterMock) Header(
	value reflect.Value, request *http.Request, str string,
) error

func (*RequestHandlerSetterMock) Path

func (r *RequestHandlerSetterMock) Path(
	value reflect.Value, request *http.Request, str string,
) error

func (*RequestHandlerSetterMock) Query

func (r *RequestHandlerSetterMock) Query(
	value reflect.Value, request *http.Request, str string,
) error

Jump to

Keyboard shortcuts

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