Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormURLEncoder ¶
type FormURLEncoder struct{}
type JSON ¶
type JSON struct{}
func (JSON) MakeListDecoder ¶ added in v0.209.0
func (s JSON) MakeListDecoder(r io.Reader) ListDecoder
func (JSON) MakeListEncoder ¶ added in v0.209.0
func (s JSON) MakeListEncoder(w io.Writer) ListEncoder
type JSONStream ¶
type JSONStream struct{}
func (JSONStream) MakeListEncoder ¶ added in v0.209.0
func (s JSONStream) MakeListEncoder(w io.Writer) ListEncoder
func (JSONStream) NewListDecoder ¶
func (s JSONStream) NewListDecoder(w io.ReadCloser) ListDecoder
type ListDecoder ¶
type ListDecoder interface {
Decode(ptr any) error
// Next will ensure that Value returns the next item when executed.
// If the next value is not retrievable, Next should return false and ensure Err() will return the error cause.
Next() bool
// Err return the error cause.
Err() error
// Closer is required to make it able to cancel iterators where resources are being used behind the scene
// for all other cases where the underling io is handled on a higher level, it should simply return nil
io.Closer
}
type ListDecoderMaker ¶
type ListDecoderMaker interface {
MakeListDecoder(w io.Reader) ListDecoder
}
type ListEncoder ¶
type ListEncoderMaker ¶
type ListEncoderMaker interface {
MakeListEncoder(w io.Writer) ListEncoder
}
type ListSerializer ¶
type ListSerializer interface {
ListEncoderMaker
ListDecoderMaker
}
Click to show internal directories.
Click to hide internal directories.