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 AllowAdmin + const AllowNone + const AllowOwner + const AllowRead + const AllowReadWrite + const AllowWrite + const TopicInvalid + const TopicKeySeparator + const TopicSeparator + const TopicStatic + const TopicWildcard + var ErrTargetTooLong = errors.New("topic can not have more than 23 parts") + func GenerateKey(contract uint32, topic []byte, permissions uint32) (string, error) + type Key []byte + func DecodeKey(key []byte) (Key, error) + func (k Key) Encode() string + func (k Key) HasPermission(flag uint32) bool + func (k Key) IsEmpty() bool + func (k Key) Permissions() uint32 + func (k Key) SetPermissions(value uint32) + func (k Key) SetTarget(contract uint32, topic []byte) error + func (k Key) ValidateTopic(contract uint32, topic []byte) (ok bool, wildcard bool) + type Topic struct + Key []byte + Size int + Topic []byte + TopicType uint8 + func ParseKey(text []byte) (topic *Topic) + func (topic *Topic) Target() uint32