Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SetError func(context.Context, *http.Request, http.ResponseWriter, error, map[string]string) = DefaultSetError
SetError is used to output errors to the client. You can override that in the runtime.
Functions ¶
func DefaultSetError ¶
func DefaultSetError(ctx context.Context, req *http.Request, w http.ResponseWriter, err error, data map[string]string)
DefaultSetError is the default error output.
func MarshalerForRequest ¶
MarshalerForRequest returns marshalers for inbound and outbound bodies.
func OverrideMarshaler ¶
OverrideMarshaler replaces marshaler for given content-type.
Types ¶
type MarshalerPbJSON ¶
type MarshalerPbJSON struct { Marshaler *jsonpb.Marshaler Unmarshaler *jsonpb.Unmarshaler GogoMarshaler *gogojsonpb.Marshaler GogoUnmarshaler *gogojsonpb.Unmarshaler }
func (MarshalerPbJSON) ContentType ¶
func (MarshalerPbJSON) ContentType() string
Click to show internal directories.
Click to hide internal directories.