Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Use ¶ added in v0.2.0
func (c *Client) Use(mw Middleware)
Use appends the passed middleware to the end of the list
func (*Client) UseIndex ¶ added in v0.2.0
func (c *Client) UseIndex(mw Middleware, idx int)
type Handler ¶ added in v0.2.0
type Handler = func(*RequestCtx) error
type Middleware ¶ added in v0.2.0
type RequestCtx ¶ added in v0.2.0
type RequestCtx struct { context.Context Error error Request *request.Request Response *response.Response }
func (*RequestCtx) Done ¶ added in v0.2.0
func (rc *RequestCtx) Done()
Done recycles the resources used by request context, after calling this function, the request context MUST NOT be used again.
Click to show internal directories.
Click to hide internal directories.