Versions in this module Expand all Collapse all v0 v0.2.0 Aug 20, 2021 v0.1.1 Jul 8, 2021 Changes in this version + const AllowMaster + const AllowNone + const Offset + var Next = uint32(time.Date(2070, 1, 1, 0, 0, 0, 0, time.UTC).Sub(TimeNow())) + func NewApoch() uint32 + func NewUnique() uint32 + func TimeNow() time.Time + type ID []byte + func CachedClientID(contract uint32) (ID, error) + func Decode(buffer []byte, mac *crypto.MAC) (ID, error) + func NewClientID(master uint16) (ID, error) + func NewSecondaryClientID(master ID) (ID, error) + func (id ID) Contract() uint32 + func (id ID) Encode(mac *crypto.MAC) string + func (id ID) Epoch() uint32 + func (id ID) IsPrimary() bool + func (id ID) Permissions() uint32 + func (id ID) Primary() uint16 + func (id ID) SetContract(value uint32) + func (id ID) SetEpoch(value uint32) + func (id ID) SetPermissions(value uint32) + func (id ID) SetPrimary(value uint16) + type LID uint32 + func NewLID() LID