Documentation ¶
Index ¶
- func NewRequest(e *Endpoint, body io.Reader) (*http.Request, error)
- type Context
- type Endpoint
- type H
- type Handler
- type 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()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
func NewContext ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) IsFinished ¶
func (*Provider) NewRecorder ¶
func (p *Provider) NewRecorder() *httptest.ResponseRecorder
func (*Provider) RegisterEndpoint ¶
func (*Provider) RegisterMiddleware ¶
func (*Provider) SetTestMode ¶
func (p *Provider) SetTestMode()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.