Versions in this module Expand all Collapse all v0 v0.2.2 Oct 26, 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 string, permissions uint32) (string, error) + type Key []byte + func DecodeKey(key string) (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 string) error + func (k Key) ValidateTopic(contract uint32, topic string) (ok bool, wildcard bool) + type Topic struct + Key string + Size int + Topic string + TopicType uint8 + func ParseKey(text string) (topic *Topic) + func (topic *Topic) Target() uint32 v0.2.2-alpha Oct 26, 2021