Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
gonethttprequestjson.Decoder
gonethttpresponsejson.Encoder
}
Parser is the parser implementation for JSON encoding and decoding
func NewParser ¶
func NewParser( decoder *gonethttprequestjson.Decoder, encoder *gonethttpresponsejson.Encoder, ) (*Parser, error)
NewParser creates a new JSON parser
Parameters:
- decoder: the JSON decoder
- encoder: the JSON encoder
Returns:
- *Parser: the created JSON parser
- error: the error if any
type StreamParser ¶
type StreamParser struct {
gonethttprequestjson.StreamDecoder
gonethttpresponsejson.StreamEncoder
}
StreamParser is the parser implementation for streaming JSON encoding and decoding
func NewStreamParser ¶
func NewStreamParser( decoder *gonethttprequestjson.StreamDecoder, encoder *gonethttpresponsejson.StreamEncoder, ) (*StreamParser, error)
NewStreamParser creates a new JSON stream parser
Parameters:
- decoder: the JSON stream decoder
- encoder: the JSON stream encoder
Returns:
- *StreamParser: the created JSON stream parser
- error: the error if any
Click to show internal directories.
Click to hide internal directories.