Documentation
¶
Index ¶
- Variables
- type Array
- func (c *Array) Decode(r *buff.Reader, out reflect.Value)
- func (c *Array) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Array) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Array) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *Array) ID() types.UUID
- func (c *Array) Type() reflect.Type
- type BigInt
- func (c *BigInt) Decode(r *buff.Reader, out reflect.Value)
- func (c *BigInt) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *BigInt) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *BigInt) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *BigInt) ID() types.UUID
- func (c *BigInt) Type() reflect.Type
- type Bool
- func (c *Bool) Decode(r *buff.Reader, out reflect.Value)
- func (c *Bool) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Bool) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Bool) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *Bool) ID() types.UUID
- func (c *Bool) Type() reflect.Type
- type Bytes
- func (c *Bytes) Decode(r *buff.Reader, out reflect.Value)
- func (c *Bytes) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Bytes) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Bytes) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *Bytes) ID() types.UUID
- func (c *Bytes) Type() reflect.Type
- type Codec
- type DateTime
- func (c *DateTime) Decode(r *buff.Reader, out reflect.Value)
- func (c *DateTime) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *DateTime) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *DateTime) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *DateTime) ID() types.UUID
- func (c *DateTime) Type() reflect.Type
- type Duration
- func (c *Duration) Decode(r *buff.Reader, out reflect.Value)
- func (c *Duration) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Duration) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Duration) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *Duration) ID() types.UUID
- func (c *Duration) Type() reflect.Type
- type Float32
- func (c *Float32) Decode(r *buff.Reader, out reflect.Value)
- func (c *Float32) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Float32) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Float32) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *Float32) ID() types.UUID
- func (c *Float32) Type() reflect.Type
- type Float64
- func (c *Float64) Decode(r *buff.Reader, out reflect.Value)
- func (c *Float64) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Float64) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Float64) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *Float64) ID() types.UUID
- func (c *Float64) Type() reflect.Type
- type Int16
- func (c *Int16) Decode(r *buff.Reader, out reflect.Value)
- func (c *Int16) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Int16) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Int16) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *Int16) ID() types.UUID
- func (c *Int16) Type() reflect.Type
- type Int32
- func (c *Int32) Decode(r *buff.Reader, out reflect.Value)
- func (c *Int32) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Int32) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Int32) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *Int32) ID() types.UUID
- func (c *Int32) Type() reflect.Type
- type Int64
- func (c *Int64) Decode(r *buff.Reader, out reflect.Value)
- func (c *Int64) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Int64) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Int64) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *Int64) ID() types.UUID
- func (c *Int64) Type() reflect.Type
- type JSON
- func (c *JSON) Decode(r *buff.Reader, out reflect.Value)
- func (c *JSON) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *JSON) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *JSON) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *JSON) ID() types.UUID
- func (c *JSON) Type() reflect.Type
- type LocalDate
- func (c *LocalDate) Decode(r *buff.Reader, out reflect.Value)
- func (c *LocalDate) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *LocalDate) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *LocalDate) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *LocalDate) ID() types.UUID
- func (c *LocalDate) Type() reflect.Type
- type LocalDateTime
- func (c *LocalDateTime) Decode(r *buff.Reader, out reflect.Value)
- func (c *LocalDateTime) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *LocalDateTime) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *LocalDateTime) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *LocalDateTime) ID() types.UUID
- func (c *LocalDateTime) Type() reflect.Type
- type LocalTime
- func (c *LocalTime) Decode(r *buff.Reader, out reflect.Value)
- func (c *LocalTime) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *LocalTime) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *LocalTime) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *LocalTime) ID() types.UUID
- func (c *LocalTime) Type() reflect.Type
- type NamedTuple
- func (c *NamedTuple) Decode(r *buff.Reader, out reflect.Value)
- func (c *NamedTuple) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *NamedTuple) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *NamedTuple) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *NamedTuple) ID() types.UUID
- func (c *NamedTuple) Type() reflect.Type
- type Object
- func (c *Object) Decode(r *buff.Reader, out reflect.Value)
- func (c *Object) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Object) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Object) Encode(buf *buff.Writer, val interface{}, path Path) error
- func (c *Object) ID() types.UUID
- func (c *Object) Type() reflect.Type
- type Path
- type Set
- func (c *Set) Decode(r *buff.Reader, out reflect.Value)
- func (c *Set) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Set) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Set) Encode(buf *buff.Writer, val interface{}, path Path) error
- func (c *Set) ID() types.UUID
- func (c *Set) Type() reflect.Type
- type Str
- func (c *Str) Decode(r *buff.Reader, out reflect.Value)
- func (c *Str) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Str) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Str) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *Str) ID() types.UUID
- func (c *Str) Type() reflect.Type
- type Tuple
- func (c *Tuple) Decode(r *buff.Reader, out reflect.Value)
- func (c *Tuple) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *Tuple) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *Tuple) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *Tuple) ID() types.UUID
- func (c *Tuple) Type() reflect.Type
- type UUID
- func (c *UUID) Decode(r *buff.Reader, out reflect.Value)
- func (c *UUID) DecodePtr(r *buff.Reader, out unsafe.Pointer)
- func (c *UUID) DecodeReflect(r *buff.Reader, out reflect.Value, path Path)
- func (c *UUID) Encode(w *buff.Writer, val interface{}, path Path) error
- func (c *UUID) ID() types.UUID
- func (c *UUID) Type() reflect.Type
Constants ¶
This section is empty.
Variables ¶
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 = &Bytes{strID, bytesType} )
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
Array is an EdgeDB array type codec.
func (*Array) DecodeReflect ¶
DecodeReflect decodes an array into a reflect.Value.
type BigInt ¶
type BigInt struct{}
BigInt is and EdgeDB bigint type codec.
func (*BigInt) DecodeReflect ¶
DecodeReflect decodes a bigint into a reflect.Value.
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
Bool is an EdgeDB bool type codec.
func (*Bool) DecodeReflect ¶
DecodeReflect decodes a bool into a reflect.Value.
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
Bytes is an EdgeDB bytes type codec.
func (*Bytes) DecodeReflect ¶
DecodeReflect decodes bytes into a reflect.Value.
type Codec ¶
type Codec interface {
Decode(*buff.Reader, reflect.Value)
DecodeReflect(*buff.Reader, reflect.Value, Path)
DecodePtr(*buff.Reader, unsafe.Pointer)
Encode(*buff.Writer, interface{}, Path) error
ID() types.UUID
Type() reflect.Type
// contains filtered or unexported methods
}
Codec interface
type DateTime ¶
type DateTime struct {
// contains filtered or unexported fields
}
DateTime is an EdgeDB datetime type codec.
func (*DateTime) DecodeReflect ¶
DecodeReflect decodes a datetime into a reflect.Value.
type Duration ¶
type Duration struct{}
Duration is an EdgeDB duration codec.
func (*Duration) DecodeReflect ¶
DecodeReflect decodes a duration into a reflect.Value.
type Float32 ¶
type Float32 struct {
// contains filtered or unexported fields
}
Float32 is an EdgeDB float32 type codec.
func (*Float32) DecodeReflect ¶
DecodeReflect decodes a float32 into a reflect.Value.
type Float64 ¶
type Float64 struct {
// contains filtered or unexported fields
}
Float64 is an EdgeDB float64 type codec.
func (*Float64) DecodeReflect ¶
DecodeReflect decodes a float64 into a reflect.Value.
type Int16 ¶
type Int16 struct {
// contains filtered or unexported fields
}
Int16 is an EdgeDB int64 type codec.
func (*Int16) DecodeReflect ¶
DecodeReflect decodes an int16 into a reflect.Value.
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
Int32 is an EdgeDB int32 type codec.
func (*Int32) DecodeReflect ¶
DecodeReflect decodes an int32 into a reflect.Value.
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
Int64 is an EdgeDB int64 type codec.
func (*Int64) DecodeReflect ¶
DecodeReflect decodes an int64 into a reflect.Value.
type JSON ¶
type JSON struct {
// contains filtered or unexported fields
}
JSON is an EdgeDB json type codec.
func (*JSON) DecodeReflect ¶
DecodeReflect decodes JSON into a reflect.Value.
type LocalDate ¶
type LocalDate struct{}
LocalDate is an EdgeDB cal::local_date codec
func (*LocalDate) DecodeReflect ¶
DecodeReflect decodes a LocalDateTime using reflection
type LocalDateTime ¶
type LocalDateTime struct{}
LocalDateTime is an EdgeDB cal::local_datetime codec
func (*LocalDateTime) Decode ¶
func (c *LocalDateTime) Decode(r *buff.Reader, out reflect.Value)
Decode a LocalDateTime
func (*LocalDateTime) DecodePtr ¶
func (c *LocalDateTime) DecodePtr(r *buff.Reader, out unsafe.Pointer)
DecodePtr decodes a LocalDateTime into an unsafe.Pointer.
func (*LocalDateTime) DecodeReflect ¶
DecodeReflect decodes a LocalDateTime using reflection
func (*LocalDateTime) Encode ¶
func (c *LocalDateTime) Encode( w *buff.Writer, val interface{}, path Path, ) error
Encode a LocalDateTime
func (*LocalDateTime) Type ¶
func (c *LocalDateTime) Type() reflect.Type
Type returns the reflect.Type that this codec decodes to.
type LocalTime ¶
type LocalTime struct{}
LocalTime is an EdgeDB cal::local_time codec
func (*LocalTime) DecodeReflect ¶
DecodeReflect decodes a LocalTimeTime using reflection
type NamedTuple ¶
type NamedTuple struct {
// contains filtered or unexported fields
}
NamedTuple is an EdgeDB namedtuple type codec.
func (*NamedTuple) Decode ¶
func (c *NamedTuple) Decode(r *buff.Reader, out reflect.Value)
Decode a named tuple.
func (*NamedTuple) DecodePtr ¶
func (c *NamedTuple) DecodePtr(r *buff.Reader, out unsafe.Pointer)
DecodePtr decodes a named tuple into an unsafe.Pointer.
func (*NamedTuple) DecodeReflect ¶
DecodeReflect decodes a named tuple into a reflect.Value.
func (*NamedTuple) Encode ¶
func (c *NamedTuple) Encode(w *buff.Writer, val interface{}, path Path) error
Encode a named tuple.
func (*NamedTuple) Type ¶
func (c *NamedTuple) Type() reflect.Type
Type returns the reflect.Type that this codec decodes to.
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object is an EdgeDB object type codec.
func (*Object) DecodeReflect ¶
DecodeReflect decodes an object into a reflect.Value.
type Path ¶
type Path string
Path is used in error messages to show what field in a nested data structure caused the error.
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set is an EdgeDB set type codec.
func (*Set) DecodeReflect ¶
DecodeReflect decodes a set into a reflect.Value.
type Str ¶
type Str struct {
// contains filtered or unexported fields
}
Str is an EdgeDB string type codec.
func (*Str) DecodeReflect ¶
DecodeReflect decodes a str into a reflect.Value.
type Tuple ¶
type Tuple struct {
// contains filtered or unexported fields
}
Tuple is an EdgeDB tuple type codec.
func (*Tuple) DecodeReflect ¶
DecodeReflect decodes a tuple into a reflect.Value.