Documentation ¶
Index ¶
- type AttrID
- type Attrdef
- type BaseChg
- type ByteChg
- type ByteMapChg
- type ChangeType
- type Chg
- func NewByteChg(s *Attrdef, values ...byte) Chg
- func NewByteMapChg(s *Attrdef, key byte, typ ChangeType, chgs []Chg) Chg
- func NewFloat32Chg(s *Attrdef, values ...float32) Chg
- func NewFloat64Chg(s *Attrdef, values ...float64) Chg
- func NewInt16Chg(s *Attrdef, values ...int16) Chg
- func NewInt16MapChg(s *Attrdef, key int16, typ ChangeType, chgs []Chg) Chg
- func NewInt32Chg(s *Attrdef, values ...int32) Chg
- func NewInt32MapChg(s *Attrdef, key int32, typ ChangeType, chgs []Chg) Chg
- func NewInt64Chg(s *Attrdef, values ...int64) Chg
- func NewInt64MapChg(s *Attrdef, key int64, typ ChangeType, chgs []Chg) Chg
- func NewInt8Chg(s *Attrdef, values ...int8) Chg
- func NewInt8MapChg(s *Attrdef, key int8, typ ChangeType, chgs []Chg) Chg
- func NewIntChg(s *Attrdef, values ...int) Chg
- func NewIntMapChg(s *Attrdef, key int, typ ChangeType, chgs []Chg) Chg
- func NewSliceChg(sref *Attrdef, idx int, typ ChangeType, chgs []Chg) Chg
- func NewStringChg(s *Attrdef, values ...string) Chg
- func NewStringMapChg(s *Attrdef, key string, typ ChangeType, chgs []Chg) Chg
- func NewStructChg(sref *Attrdef, chg Diff) Chg
- func NewTimeChg(s *Attrdef, values ...time.Time) Chg
- func NewTimeMapChg(s *Attrdef, key time.Time, typ ChangeType, chgs []Chg) Chg
- func NewUint16Chg(s *Attrdef, values ...uint16) Chg
- func NewUint16MapChg(s *Attrdef, key uint16, typ ChangeType, chgs []Chg) Chg
- func NewUint32Chg(s *Attrdef, values ...uint32) Chg
- func NewUint32MapChg(s *Attrdef, key uint32, typ ChangeType, chgs []Chg) Chg
- func NewUint64Chg(s *Attrdef, values ...uint64) Chg
- func NewUint64MapChg(s *Attrdef, key uint64, typ ChangeType, chgs []Chg) Chg
- func NewUint8Chg(s *Attrdef, values ...uint8) Chg
- func NewUint8MapChg(s *Attrdef, key uint8, typ ChangeType, chgs []Chg) Chg
- func NewUintChg(s *Attrdef, values ...uint) Chg
- func NewUintMapChg(s *Attrdef, key uint, typ ChangeType, chgs []Chg) Chg
- type Diff
- type DiffApplyError
- type Float32Chg
- type Float64Chg
- type Int16Chg
- type Int16MapChg
- type Int32Chg
- type Int32MapChg
- type Int64Chg
- type Int64MapChg
- type Int8Chg
- type Int8MapChg
- type IntChg
- type IntMapChg
- type PersistenceClass
- type SliceChg
- type StringChg
- type StringMapChg
- type StructChg
- type TimeChg
- type TimeMapChg
- type TypeID
- type Typedef
- type Uint16Chg
- type Uint16MapChg
- type Uint32Chg
- type Uint32MapChg
- type Uint64Chg
- type Uint64MapChg
- type Uint8Chg
- type Uint8MapChg
- type UintChg
- type UintMapChg
- type Writable
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attrdef ¶
type Attrdef struct { ID *AttrID Persistence PersistenceClass }
type BaseChg ¶
type BaseChg struct {
// contains filtered or unexported fields
}
func (BaseChg) AttributeID ¶
func (BaseChg) PersistenceClass ¶
func (d BaseChg) PersistenceClass() PersistenceClass
type ByteMapChg ¶
type ByteMapChg struct { BaseChg Key byte Typ ChangeType Chgs []Chg }
func (*ByteMapChg) WriteIndented ¶
func (c *ByteMapChg) WriteIndented(w io.Writer, lev int)
type ChangeType ¶
type ChangeType int
const ( ChangeTypeInsert ChangeType = iota ChangeTypeDelete ChangeTypeModify )
func (ChangeType) String ¶
func (i ChangeType) String() string
type Chg ¶
type Chg interface { AttributeID() *AttrID Schemaref() *Attrdef WriteIndented(w io.Writer, lev int) }
func NewByteChg ¶
func NewByteMapChg ¶
func NewByteMapChg(s *Attrdef, key byte, typ ChangeType, chgs []Chg) Chg
func NewFloat32Chg ¶
func NewFloat64Chg ¶
func NewInt16Chg ¶
func NewInt16MapChg ¶
func NewInt16MapChg(s *Attrdef, key int16, typ ChangeType, chgs []Chg) Chg
func NewInt32Chg ¶
func NewInt32MapChg ¶
func NewInt32MapChg(s *Attrdef, key int32, typ ChangeType, chgs []Chg) Chg
func NewInt64Chg ¶
func NewInt64MapChg ¶
func NewInt64MapChg(s *Attrdef, key int64, typ ChangeType, chgs []Chg) Chg
func NewInt8Chg ¶
func NewInt8MapChg ¶
func NewInt8MapChg(s *Attrdef, key int8, typ ChangeType, chgs []Chg) Chg
func NewIntMapChg ¶
func NewIntMapChg(s *Attrdef, key int, typ ChangeType, chgs []Chg) Chg
func NewSliceChg ¶
func NewSliceChg(sref *Attrdef, idx int, typ ChangeType, chgs []Chg) Chg
func NewStringChg ¶
func NewStringMapChg ¶
func NewStringMapChg(s *Attrdef, key string, typ ChangeType, chgs []Chg) Chg
func NewStructChg ¶
func NewTimeMapChg ¶
func NewUint16Chg ¶
func NewUint16MapChg ¶
func NewUint16MapChg(s *Attrdef, key uint16, typ ChangeType, chgs []Chg) Chg
func NewUint32Chg ¶
func NewUint32MapChg ¶
func NewUint32MapChg(s *Attrdef, key uint32, typ ChangeType, chgs []Chg) Chg
func NewUint64Chg ¶
func NewUint64MapChg ¶
func NewUint64MapChg(s *Attrdef, key uint64, typ ChangeType, chgs []Chg) Chg
func NewUint8Chg ¶
func NewUint8MapChg ¶
func NewUint8MapChg(s *Attrdef, key uint8, typ ChangeType, chgs []Chg) Chg
func NewUintChg ¶
func NewUintMapChg ¶
func NewUintMapChg(s *Attrdef, key uint, typ ChangeType, chgs []Chg) Chg
type DiffApplyError ¶
type DiffApplyError struct {
// contains filtered or unexported fields
}
func (DiffApplyError) Error ¶
func (e DiffApplyError) Error() string
type Float32Chg ¶
func (*Float32Chg) WriteIndented ¶
func (c *Float32Chg) WriteIndented(w io.Writer, lev int)
type Float64Chg ¶
func (*Float64Chg) WriteIndented ¶
func (c *Float64Chg) WriteIndented(w io.Writer, lev int)
type Int16MapChg ¶
type Int16MapChg struct { BaseChg Key int16 Typ ChangeType Chgs []Chg }
func (*Int16MapChg) WriteIndented ¶
func (c *Int16MapChg) WriteIndented(w io.Writer, lev int)
type Int32MapChg ¶
type Int32MapChg struct { BaseChg Key int32 Typ ChangeType Chgs []Chg }
func (*Int32MapChg) WriteIndented ¶
func (c *Int32MapChg) WriteIndented(w io.Writer, lev int)
type Int64MapChg ¶
type Int64MapChg struct { BaseChg Key int64 Typ ChangeType Chgs []Chg }
func (*Int64MapChg) WriteIndented ¶
func (c *Int64MapChg) WriteIndented(w io.Writer, lev int)
type Int8MapChg ¶
type Int8MapChg struct { BaseChg Key int8 Typ ChangeType Chgs []Chg }
func (*Int8MapChg) WriteIndented ¶
func (c *Int8MapChg) WriteIndented(w io.Writer, lev int)
type PersistenceClass ¶
type PersistenceClass int
const ( PersistenceClassPersistent PersistenceClass = iota // serialized to disk and wire PersistenceClassNonPersistent // serialized to wire PersistenceClassEphemeral // computed or temporary storage - not serialized )
func (PersistenceClass) ShortString ¶
func (p PersistenceClass) ShortString() string
func (PersistenceClass) String ¶
func (i PersistenceClass) String() string
type StringMapChg ¶
type StringMapChg struct { BaseChg Key string Typ ChangeType Chgs []Chg }
func (*StringMapChg) WriteIndented ¶
func (c *StringMapChg) WriteIndented(w io.Writer, lev int)
type TimeMapChg ¶
type TimeMapChg struct { BaseChg Key time.Time Typ ChangeType Chgs []Chg }
func (*TimeMapChg) WriteIndented ¶
func (c *TimeMapChg) WriteIndented(w io.Writer, lev int)
type Uint16MapChg ¶
type Uint16MapChg struct { BaseChg Key uint16 Typ ChangeType Chgs []Chg }
func (*Uint16MapChg) WriteIndented ¶
func (c *Uint16MapChg) WriteIndented(w io.Writer, lev int)
type Uint32MapChg ¶
type Uint32MapChg struct { BaseChg Key uint32 Typ ChangeType Chgs []Chg }
func (*Uint32MapChg) WriteIndented ¶
func (c *Uint32MapChg) WriteIndented(w io.Writer, lev int)
type Uint64MapChg ¶
type Uint64MapChg struct { BaseChg Key uint64 Typ ChangeType Chgs []Chg }
func (*Uint64MapChg) WriteIndented ¶
func (c *Uint64MapChg) WriteIndented(w io.Writer, lev int)
type Uint8MapChg ¶
type Uint8MapChg struct { BaseChg Key uint8 Typ ChangeType Chgs []Chg }
func (*Uint8MapChg) WriteIndented ¶
func (c *Uint8MapChg) WriteIndented(w io.Writer, lev int)
type UintMapChg ¶
type UintMapChg struct { BaseChg Key uint Typ ChangeType Chgs []Chg }
func (*UintMapChg) WriteIndented ¶
func (c *UintMapChg) WriteIndented(w io.Writer, lev int)
type Writable ¶
type Writable interface { WriteTo(w *Writer) error PersistenceClass() PersistenceClass }
type Writer ¶
func (*Writer) WriteString ¶
func (*Writer) WriteUVarint ¶
func (*Writer) WriteVarint ¶
Source Files ¶
- byteChg.go
- byteMapChg.go
- changetype_string.go
- diff.go
- diffgen.go
- float32Chg.go
- float64Chg.go
- identifiers.go
- int16Chg.go
- int16MapChg.go
- int32Chg.go
- int32MapChg.go
- int64Chg.go
- int64MapChg.go
- int8Chg.go
- int8MapChg.go
- intChg.go
- intMapChg.go
- persistenceclass_string.go
- schema.go
- stringChg.go
- stringMapChg.go
- timeChg.go
- timeMapChg.go
- uint16Chg.go
- uint16MapChg.go
- uint32Chg.go
- uint32MapChg.go
- uint64Chg.go
- uint64MapChg.go
- uint8Chg.go
- uint8MapChg.go
- uintChg.go
- uintMapChg.go
- writer.go
Click to show internal directories.
Click to hide internal directories.