Documentation ¶
Index ¶
- Variables
- 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 ¶
This section is empty.
Types ¶
type JSONPb ¶
type JSONPb struct { }
func (*JSONPb) ContentType ¶
func (*JSONPb) ContentTypeFromMessage ¶
func (*JSONPb) NewDecoder ¶
NewDecoder returns a runtime.Decoder which reads JSON stream from "r".
func (*JSONPb) NewEncoder ¶
NewEncoder returns an Encoder which writes JSON stream into "w".
Click to show internal directories.
Click to hide internal directories.