Documentation ¶
Index ¶
- Constants
- Variables
- func Decrypt(d []byte, key Key) ([]byte, error)
- func Encrypt(d []byte, key Key) []byte
- type Binary
- func BinaryFromBoolean(b bool) Binary
- func BinaryFromFloat64(f float64) Binary
- func BinaryFromInt(i int64) Binary
- func BinaryFromString(s string) Binary
- func BinaryFromTime(date time.Time) Binary
- func BinaryFromUint(i uint64) Binary
- func ParseBinary(h string) Binary
- func ParseBinaryBase64(s string) Binary
- func ParseBinaryHex(h string) Binary
- func (d *Binary) Base64() string
- func (d *Binary) Decrypt(key Key) error
- func (d *Binary) Encrypt(key Key)
- func (d Binary) Equals(data Binary) bool
- func (d *Binary) FromBoolean(b bool) error
- func (d *Binary) FromFloat64(f float64) error
- func (d *Binary) FromInt64(i int64) error
- func (d *Binary) FromString(s string) error
- func (d *Binary) FromTime(date time.Time) error
- func (d *Binary) FromUint(i uint64) error
- func (d Binary) Hash64() uint64
- func (d Binary) Hex() string
- func (d Binary) MarshalJSON() ([]byte, error)
- func (d Binary) MarshalYAML() (interface{}, error)
- func (d Binary) String() string
- func (d Binary) ToBoolean() (bool, error)
- func (d Binary) ToFloat64() (float64, error)
- func (d Binary) ToID() ID
- func (d Binary) ToInt64() (int64, error)
- func (d Binary) ToRID() RichID
- func (d Binary) ToString() (string, error)
- func (d Binary) ToTime() (time.Time, error)
- func (d Binary) ToUint() (uint64, error)
- func (d *Binary) UnmarshalJSON(b []byte) error
- func (d *Binary) UnmarshalYAML(value *yaml.Node) error
- type BinaryOut
- type BinaryPairOut
- type ID
- func B2ID(b Binary) ID
- func MustParseID(str string) ID
- func NewID() ID
- func ParseID(str string) (ID, error)
- func ParseIDBase32(str string) (ID, error)
- func ParseIDBase62(str string) (ID, error)
- func ParseIDBase64(str string) (ID, error)
- func ParseIDHex(str string) (ID, error)
- func ParseIDNC(i interface{}) ID
- func UnwrapID(rid RichID) ID
- func UnwrapRID(rid RichID) (ID, byte)
- func (id ID) Base32() string
- func (id ID) Base62() string
- func (id ID) Base64() string
- func (id ID) Equals(other ID) bool
- func (id ID) Hex() string
- func (id ID) Invert() ID
- func (id ID) IsNull() bool
- func (id ID) LessThan(other ID) bool
- func (id ID) MarshalJSON() ([]byte, error)
- func (id ID) MarshalYAML() (interface{}, error)
- func (id ID) String() string
- func (id *ID) UnmarshalJSON(b []byte) error
- func (id *ID) UnmarshalYAML(value *yaml.Node) error
- type IDBoundGroup
- type IDBounds
- func (ib IDBounds) Contains(id ID) bool
- func (ib IDBounds) MarshalJSON() ([]byte, error)
- func (ib IDBounds) MarshalYAML() (interface{}, error)
- func (ib IDBounds) Middle() ID
- func (ib IDBounds) NewID() ID
- func (ib IDBounds) Split() [2]IDBounds
- func (ib IDBounds) String() string
- func (ib *IDBounds) UnmarshalJSON(b []byte) error
- func (ib *IDBounds) UnmarshalYAML(value *yaml.Node) error
- type IDList
- func (ic IDList) Contains(id ID) bool
- func (ic IDList) Copy() IDList
- func (ic IDList) Len() int
- func (ic IDList) Less(i, j int) bool
- func (ic IDList) MarshalJSON() ([]byte, error)
- func (ic *IDList) Remove(id ID, remove int) int
- func (ic IDList) Set() IDSet
- func (ic *IDList) Swap(i, j int)
- func (ic *IDList) UnmarshalJSON(b []byte) error
- type IDMap
- func (rs IDMap) ContainsValue(id ID) bool
- func (rs IDMap) KeyByValue(id ID) *ID
- func (rs IDMap) KeySet() IDSet
- func (rs IDMap) MarshalJSON() ([]byte, error)
- func (rs IDMap) MarshalYAML() (interface{}, error)
- func (rs IDMap) Pick() ID
- func (rs *IDMap) UnmarshalJSON(b []byte) error
- func (rs *IDMap) UnmarshalYAML(value *yaml.Node) error
- func (rs IDMap) ValueSet() IDSet
- func (rs IDMap) Values() []ID
- type IDPair
- type IDPairList
- type IDPairsIn
- type IDPairsOut
- type IDSet
- func (ic *IDSet) AddAll(set IDSet)
- func (ic IDSet) Contains(id ID) bool
- func (ic IDSet) Copy() IDSet
- func (ic IDSet) Hash() ID
- func (ic *IDSet) List() IDList
- func (ic IDSet) MarshalJSON() ([]byte, error)
- func (ic *IDSet) SortedList() IDList
- func (ic *IDSet) UnmarshalJSON(b []byte) error
- func (ic IDSet) Without(n IDSet) IDSet
- type IDsIn
- type IDsOut
- type Key
- type KeyedIDPair
- type KeyedIDPairList
- type KeyedIDPairsIn
- type KeyedIDPairsOut
- func (s KeyedIDPairsOut) Length() int64
- func (s KeyedIDPairsOut) List() []KeyedIDPair
- func (s KeyedIDPairsOut) PairKeys() IDsOut
- func (s KeyedIDPairsOut) PairList() []IDPair
- func (s KeyedIDPairsOut) PairMap() IDMap
- func (s KeyedIDPairsOut) PairValueList() IDList
- func (s KeyedIDPairsOut) PairValueSet() IDSet
- func (s KeyedIDPairsOut) PairValues() IDsOut
- func (s KeyedIDPairsOut) Pairs() IDPairsOut
- type RichID
Constants ¶
View Source
const IDSize = 16
Variables ¶
View Source
var IDBase64Len = len(ID{}.Base64())
View Source
var IDHexLen = len(ID{}.Hex())
View Source
var IDStringLen = IDBase64Len
Functions ¶
Types ¶
type Binary ¶
type Binary []byte
func BinaryFromBoolean ¶
func BinaryFromFloat64 ¶
func BinaryFromInt ¶
func BinaryFromString ¶
func BinaryFromTime ¶
func BinaryFromUint ¶
func ParseBinary ¶
func ParseBinaryBase64 ¶
func ParseBinaryHex ¶
func (*Binary) FromBoolean ¶
func (*Binary) FromFloat64 ¶
func (*Binary) FromString ¶
func (Binary) MarshalJSON ¶
func (Binary) MarshalYAML ¶
func (*Binary) UnmarshalJSON ¶
func (*Binary) UnmarshalYAML ¶
type BinaryPairOut ¶
type BinaryPairOut <-chan [2]Binary
func (BinaryPairOut) List ¶
func (s BinaryPairOut) List() [][2]Binary
type ID ¶
var MaxID ID
var MinID ID
func MustParseID ¶
func ParseIDBase32 ¶
func ParseIDBase62 ¶
func ParseIDBase64 ¶
func ParseIDHex ¶
func (ID) MarshalJSON ¶
func (ID) MarshalYAML ¶
func (*ID) UnmarshalJSON ¶
func (*ID) UnmarshalYAML ¶
type IDBoundGroup ¶
type IDBoundGroup []IDBounds
func (*IDBoundGroup) Add ¶
func (idg *IDBoundGroup) Add(b IDBounds)
func (*IDBoundGroup) AddAll ¶
func (idg *IDBoundGroup) AddAll(bs IDBoundGroup)
func (IDBoundGroup) Contains ¶
func (idg IDBoundGroup) Contains(id ID) bool
func (*IDBoundGroup) Remove ¶
func (idg *IDBoundGroup) Remove(b IDBounds) bool
type IDBounds ¶
var MaxBounds IDBounds
func ParseIDBounds ¶
func (IDBounds) MarshalJSON ¶
func (IDBounds) MarshalYAML ¶
func (*IDBounds) UnmarshalJSON ¶
func (*IDBounds) UnmarshalYAML ¶
type IDMap ¶
func (IDMap) ContainsValue ¶
func (IDMap) KeyByValue ¶
func (IDMap) MarshalJSON ¶
func (IDMap) MarshalYAML ¶
func (*IDMap) UnmarshalJSON ¶
func (*IDMap) UnmarshalYAML ¶
type IDPairList ¶
type IDPairList []IDPair
func (IDPairList) Keys ¶
func (il IDPairList) Keys() IDList
func (IDPairList) Map ¶
func (il IDPairList) Map() IDMap
func (IDPairList) Values ¶
func (il IDPairList) Values() IDList
type IDPairsOut ¶
type IDPairsOut <-chan IDPair
func (IDPairsOut) Keys ¶
func (s IDPairsOut) Keys() IDsOut
func (IDPairsOut) Length ¶
func (s IDPairsOut) Length() int64
func (IDPairsOut) List ¶
func (s IDPairsOut) List() []IDPair
func (IDPairsOut) Map ¶
func (s IDPairsOut) Map() IDMap
func (IDPairsOut) Values ¶
func (s IDPairsOut) Values() IDsOut
type KeyedIDPair ¶
type KeyedIDPairList ¶
type KeyedIDPairList []KeyedIDPair
func (KeyedIDPairList) Keys ¶
func (il KeyedIDPairList) Keys() IDList
func (KeyedIDPairList) Map ¶
func (il KeyedIDPairList) Map() IDMap
func (KeyedIDPairList) Values ¶
func (il KeyedIDPairList) Values() IDList
type KeyedIDPairsIn ¶
type KeyedIDPairsIn chan<- KeyedIDPair
type KeyedIDPairsOut ¶
type KeyedIDPairsOut <-chan KeyedIDPair
func (KeyedIDPairsOut) Length ¶
func (s KeyedIDPairsOut) Length() int64
func (KeyedIDPairsOut) List ¶
func (s KeyedIDPairsOut) List() []KeyedIDPair
func (KeyedIDPairsOut) PairKeys ¶
func (s KeyedIDPairsOut) PairKeys() IDsOut
func (KeyedIDPairsOut) PairList ¶
func (s KeyedIDPairsOut) PairList() []IDPair
func (KeyedIDPairsOut) PairMap ¶
func (s KeyedIDPairsOut) PairMap() IDMap
func (KeyedIDPairsOut) PairValueList ¶
func (s KeyedIDPairsOut) PairValueList() IDList
func (KeyedIDPairsOut) PairValueSet ¶
func (s KeyedIDPairsOut) PairValueSet() IDSet
func (KeyedIDPairsOut) PairValues ¶
func (s KeyedIDPairsOut) PairValues() IDsOut
func (KeyedIDPairsOut) Pairs ¶
func (s KeyedIDPairsOut) Pairs() IDPairsOut
Click to show internal directories.
Click to hide internal directories.