Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // JSONBytes is a special case codec for json queries. // In go query json should return bytes not str. // but the descriptor type ID sent to the server // should still be str. JSONBytes = &bytesCodec{strID} )
Functions ¶
This section is empty.
Types ¶
type Decoder ¶ added in v0.6.0
Decoder can decode the data wire format into objects.
func BuildDecoder ¶ added in v0.6.0
func BuildDecoder( desc descriptor.Descriptor, typ reflect.Type, path Path, ) (Decoder, error)
BuildDecoder builds a Decoder from a Descriptor.
type DecoderField ¶ added in v0.6.0
type DecoderField struct {
// contains filtered or unexported fields
}
DecoderField is a link to a child decoder used by objects, named tuples and tuples.
type Encoder ¶ added in v0.6.0
type Encoder interface {
DescriptorID() types.UUID
Encode(*buff.Writer, interface{}, Path, bool) error
}
Encoder can encode objects into the data wire format.
func BuildEncoder ¶ added in v0.6.0
func BuildEncoder( desc descriptor.Descriptor, version internal.ProtocolVersion, ) (Encoder, error)
BuildEncoder builds and Encoder from a Descriptor.
type EncoderField ¶ added in v0.6.0
type EncoderField struct {
// contains filtered or unexported fields
}
EncoderField is a link to a child encoder used by objects, named tuples and tuples.
type OptionalDecoder ¶ added in v0.8.0
OptionalDecoder is used when decoding optional shape fields.
Click to show internal directories.
Click to hide internal directories.