Documentation ¶
Index ¶
- Variables
- func CustomHttpError(ctx context.Context, mux *runtime.ServeMux, marshaler runtime.Marshaler, ...)
- func Gateway(gatewayHandle GatewayHandler) *runtime.ServeMux
- func RoutingErrorHandler(ctx context.Context, mux *runtime.ServeMux, marshaler runtime.Marshaler, ...)
- type GatewayHandler
- type JSONPb
- func (*JSONPb) ContentType(_ interface{}) string
- func (j *JSONPb) ContentTypeFromMessage(v interface{}) string
- func (j *JSONPb) Delimiter() []byte
- func (j *JSONPb) Marshal(v any) ([]byte, error)
- func (j *JSONPb) Name() string
- func (j *JSONPb) NewDecoder(r io.Reader) runtime.Decoder
- func (j *JSONPb) NewEncoder(w io.Writer) runtime.Encoder
- func (j *JSONPb) Unmarshal(data []byte, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var JsonPb = &JSONPb{}
Functions ¶
func CustomHttpError ¶
func Gateway ¶
func Gateway(gatewayHandle GatewayHandler) *runtime.ServeMux
Types ¶
type JSONPb ¶ added in v0.0.8
type JSONPb struct { }
func (*JSONPb) ContentType ¶ added in v0.0.8
func (*JSONPb) ContentTypeFromMessage ¶ added in v0.0.8
func (*JSONPb) NewDecoder ¶ added in v0.0.8
NewDecoder returns a runtime.Decoder which reads JSON stream from "r".
func (*JSONPb) NewEncoder ¶ added in v0.0.8
NewEncoder returns an Encoder which writes JSON stream into "w".
Click to show internal directories.
Click to hide internal directories.