storage

package
v2.3.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	sync.RWMutex
	BST bst.Storage
}

func NewStorage

func NewStorage() *Storage

func (*Storage) GetByPtr

func (s *Storage) GetByPtr(topics []string, res map[string]struct{})

func (*Storage) GetByPtrTS

func (s *Storage) GetByPtrTS(topics []string, res map[string]struct{})

GetByPtrTS Thread safe get

func (*Storage) GetOneByPtr

func (s *Storage) GetOneByPtr(topic string, res map[string]struct{})

func (*Storage) Insert

func (s *Storage) Insert(connID string, topic string)

func (*Storage) InsertMany

func (s *Storage) InsertMany(connID string, topics []string)

func (*Storage) Remove

func (s *Storage) Remove(connID string, topic string)

func (*Storage) RemoveMany

func (s *Storage) RemoveMany(connID string, topics []string)

Jump to

Keyboard shortcuts

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