Versions in this module Expand all Collapse all v0 v0.2.2 Oct 26, 2021 Changes in this version + const MasterContract + const TopicInvalid + const TopicMaxDepth + const TopicMultiWildcardSymbol + const TopicSeparator + const TopicStatic + const TopicWildcard + const TopicWildcardSymbol + const Wildcard + func Prefix(parts []Part) uint64 + type ID []byte + func NewID(seq uint64) ID + func (id *ID) SetContract(contract uint32) + func (id ID) EvalPrefix(contract uint32, cutoff int64) bool + func (id ID) Prefix() ID + func (id ID) Sequence() uint64 + func (id ID) Size() int + type Part struct + Hash uint32 + Wildchars uint8 + type Topic struct + Depth uint8 + Options []TopicOption + Parts []Part + Topic []byte + TopicOptions []byte + TopicType uint8 + func (t *Topic) AddContract(contract uint32) + func (t *Topic) GetHash(contract uint32) uint64 + func (t *Topic) GetHashCode() uint32 + func (t *Topic) Last() (time.Time, int, bool) + func (t *Topic) Marshal() []byte + func (t *Topic) Parse(contract uint32, wildcard bool) + func (t *Topic) ParseKey(text []byte) + func (t *Topic) TTL() (uint32, bool) + func (t *Topic) Unmarshal(data []byte) error + type TopicOption struct + Key string + Value string v0.2.2-alpha Oct 26, 2021