Versions in this module Expand all Collapse all v2 v2.5.1 Oct 1, 2020 v2.5.0 Oct 1, 2020 Changes in this version + var SetError func(context.Context, *http.Request, http.ResponseWriter, error) = DefaultSetError + var TransformUnmarshalerError = func(err error) error + func DefaultSetError(ctx context.Context, req *http.Request, w http.ResponseWriter, err error) + func MarshalerForRequest(r *http.Request) (Marshaler, Marshaler) + func OverrideMarshaler(contentType string, m Marshaler) + func OverrideParametrizedMarshaler(contentType string, f func(ContentTypeOptions) Marshaler) + type ContentTypeOptions map[string]string + type Marshaler interface + ContentType func() string + Marshal func(io.Writer, interface{}) error + Unmarshal func(io.Reader, interface{}) error + func DefaultMarshaler(params map[string]string) Marshaler + type MarshalerPbJSON struct + GogoMarshaler *gogojsonpb.Marshaler + GogoUnmarshaler *gogojsonpb.Unmarshaler + Marshaler *runtime.JSONPb + Unmarshaler *runtime.JSONPb + func (MarshalerPbJSON) ContentType() string + func (m MarshalerPbJSON) Marshal(w io.Writer, src interface{}) error + func (m MarshalerPbJSON) Unmarshal(r io.Reader, dst interface{}) error