Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeError ¶
func EncodeError(_ context.Context, err error, w http.ResponseWriter)
EncodeError - Provide those as HTTP errors
func MakeGetHelloResponseEncoder ¶
func MakeGetHelloResponseEncoder(appCtx appcontext.Context) (kithttp.EncodeResponseFunc, error)
Types ¶
type Errorer ¶
type Errorer interface {
// contains filtered or unexported methods
}
Errorer is implemented by all concrete response types that may contain errors. It allows us to change the HTTP response code without needing to trigger an endpoint (transport-level) error.
type GetHelloResponse ¶
type GetHelloResponse struct {
Response []string
}
Click to show internal directories.
Click to hide internal directories.