TBD: precompile regular expressions for performance benefits
const ( MaxTagLen = 24 MaxTopicCapacity = 8 )
const (
MaxSubscriptionLen = 32
)
type Subscriptions []Topic
func Read(r io.Reader) (Subscriptions, error)
func ReadString(s string) (Subscriptions, error)
func (s Subscriptions) AddTopic(t Topic) Subscriptions
func (s Subscriptions) Contains(target Topic) bool
func (s Subscriptions) Copy() Subscriptions
func (s Subscriptions) Covers(target Topic) bool
func (s Subscriptions) Diff(a Subscriptions) Subscriptions
func (s Subscriptions) IsValid() bool
func (s Subscriptions) String() string
func (s Subscriptions) StringSlice() []string
func (s Subscriptions) ToCombinations() Subscriptions
type Topic []string
func NewTopic(str string) (Topic, error)
func (t Topic) ContainsTag(target string) bool
func (t Topic) ContainsTopic(subtop Topic) bool
func (t Topic) Copy() Topic
func (t Topic) IsEqual(target Topic) bool
func (t Topic) IsValid() bool
func (t Topic) Remove(target string) (Topic, error)
func (t Topic) String() string