Documentation
¶
Index ¶
- func DecodeCountRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeUppercaseRequest(_ context.Context, r *http.Request) (interface{}, error)
- func EncodeResponse(_ context.Context, w http.ResponseWriter, response interface{}) error
- func NewHTTPHandler(endpoints endpoint.Set) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCountRequest ¶
DecodeCountRequest decodes a JSON-encoded count request from the HTTP request body.
func DecodeUppercaseRequest ¶
DecodeUppercaseRequest decodes a JSON-encoded uppercase request from the HTTP request body.
func EncodeResponse ¶
func EncodeResponse(_ context.Context, w http.ResponseWriter, response interface{}) error
EncodeResponse encodes the response as JSON to the response writer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.