Documentation ¶
Overview ¶
Package encoding encoding the error or response
Index ¶
- func EncodeError(ctx context.Context, e error, w http.ResponseWriter)
- func EncodePlainResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error
- func EncodeResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error
- func SimpleEncodeError(err error) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeError ¶
func EncodeError(ctx context.Context, e error, w http.ResponseWriter)
func EncodePlainResponse ¶
func EncodePlainResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error
func EncodeResponse ¶
func EncodeResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error
func SimpleEncodeError ¶
func SimpleEncodeError(err error) interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.