Documentation
¶
Index ¶
- func AdaptErrorLogger(log logutil.Log) log.Logger
- func DecodeRequest(request interface{}, r *http.Request) error
- func EncodeError(ctx context.Context, err error, w http.ResponseWriter)
- func FinalizeRequest(ctx context.Context, code int, r *http.Request)
- func FinalizeSession(ctx context.Context, w http.ResponseWriter) context.Context
- func GetContextError(ctx context.Context) error
- func HandleErrorLikeResult(ctx context.Context, w http.ResponseWriter, e error) error
- func MakeStoreAnonymousRequestContext(hctx endpointutil.HandlerRegContext) httptransport.RequestFunc
- func MakeStoreAuthorizedRequestContext(hctx endpointutil.HandlerRegContext) httptransport.RequestFunc
- func MakeStoreInternalRequestContext(hctx endpointutil.HandlerRegContext) httptransport.RequestFunc
- func StoreHTTPRequestToContext(ctx context.Context, r *http.Request) context.Context
- type Error
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeRequest ¶
func EncodeError ¶
func EncodeError(ctx context.Context, err error, w http.ResponseWriter)
func FinalizeSession ¶
func GetContextError ¶
func HandleErrorLikeResult ¶
func MakeStoreAnonymousRequestContext ¶
func MakeStoreAnonymousRequestContext(hctx endpointutil.HandlerRegContext) httptransport.RequestFunc
func MakeStoreAuthorizedRequestContext ¶
func MakeStoreAuthorizedRequestContext(hctx endpointutil.HandlerRegContext) httptransport.RequestFunc
func MakeStoreInternalRequestContext ¶
func MakeStoreInternalRequestContext(hctx endpointutil.HandlerRegContext) httptransport.RequestFunc
Types ¶
type Error ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error *Error `json:"error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.