store

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubscriptionName

type SubscriptionName struct {
	// contains filtered or unexported fields
}

func NewName

func NewName(name string) *SubscriptionName

func (*SubscriptionName) Match

func (n *SubscriptionName) Match(channel string) bool

type SubscriptionsStore

type SubscriptionsStore struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(size int) *SubscriptionsStore

func (*SubscriptionsStore) Add

func (*SubscriptionsStore) Count

func (s *SubscriptionsStore) Count(channel string) int

Count return the number of subscriptions associated with the specified channel

func (*SubscriptionsStore) GetAll

func (*SubscriptionsStore) Match

func (s *SubscriptionsStore) Match(channel string) []*subscription.Subscription

Match returns the subscriptions that match with the specified channel name Wildcard subscriptions are matched

func (*SubscriptionsStore) Remove

func (*SubscriptionsStore) RemoveAll

func (s *SubscriptionsStore) RemoveAll()

RemoveAll removel all subscriptions and close all channels

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL