Versions in this module Expand all Collapse all v0 v0.1.1 Mar 29, 2023 v0.1.0 Mar 26, 2023 Changes in this version + const ContentType + const ContentTypeHeader + func CodeAndMessageFrom(err error) (int, interface{}) + func EncodeError(l logger, codeAndMessageFrom func(err error) (int, interface{})) httptransport.ErrorEncoder + func EncodeResponse(_ context.Context, w http.ResponseWriter, response interface{}) error + func EncodeResponseAsIs(_ context.Context, w http.ResponseWriter, response interface{}) error + type BoolResultResponse struct + Result bool + func BoolResult(result bool) BoolResultResponse + type ErrorResponse struct + Code int + Details interface{} + Err string + Message string + RequestID string + func (e ErrorResponse) Error() string + type ListMeta struct + ItemsPerPage int32 + Limit int32 + Offset int32 + Page int32 + TotalItems int64 + type ListResponse struct + Data interface{} + Meta *ListMeta + type Response struct + Data interface{} + Meta map[string]interface{}