Documentation ¶
Index ¶
- type Storage
- func (s *Storage) GetByPtr(topics []string, res map[string]struct{})
- func (s *Storage) GetByPtrTS(topics []string, res map[string]struct{})
- func (s *Storage) GetOneByPtr(topic string, res map[string]struct{})
- func (s *Storage) Insert(connID string, topic string)
- func (s *Storage) InsertMany(connID string, topics []string)
- func (s *Storage) Remove(connID string, topic string)
- func (s *Storage) RemoveMany(connID string, topics []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
func NewStorage ¶
func NewStorage() *Storage
func (*Storage) GetByPtrTS ¶
GetByPtrTS Thread safe get
func (*Storage) GetOneByPtr ¶
func (*Storage) InsertMany ¶
func (*Storage) RemoveMany ¶
Click to show internal directories.
Click to hide internal directories.