Documentation ¶
Index ¶
Constants ¶
View Source
const MaxBodyLen = 1<<16 - 1
Variables ¶
View Source
var ErrMessageTooLarge = errors.New("message too large")
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
A Decoder reads and decodes Proto Buffer values from an input stream.
func NewDecoder ¶
NewDecoder returns a new decoder that reads from r.
The decoder introduces its own buffering and may read data from r beyond the Proto Buffer values requested.
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
An Encoder writes JSON values to an output stream.
func NewEncoder ¶
NewEncoder returns a new encoder that writes to w.
Click to show internal directories.
Click to hide internal directories.