Versions in this module Expand all Collapse all v0 v0.1.4 Jun 9, 2021 Changes in this version + func NewRequest(e *Endpoint, body io.Reader) (*http.Request, error) + type Context struct + HTTP *gin.Context + func NewContext(ctx *gin.Context) *Context + type Endpoint struct + Handler Handler + Method string + Path string + func NewEndpoint(method string, path string, handler Handler) *Endpoint + type H gin.H + type Handler func(ctx *Context) + type Provider struct + func NewProvider(port string) *Provider + func (p *Provider) IsFinished() bool + func (p *Provider) NewRecorder() *httptest.ResponseRecorder + func (p *Provider) RegisterEndpoint(e *Endpoint) + func (p *Provider) RegisterMiddleware(middleware Handler) + func (p *Provider) Run(ctx context.Context) + func (p *Provider) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (p *Provider) SetTestMode() + func (p *Provider) Setup() + func (p *Provider) Shutdown()