store

package
v2.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unreg

func Unreg(topic string, key string) error

Unreg unregisters a topic to remove it from memory store

Types

type Table

type Table struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Table has one writer and multiple reader

func Reg

func Reg(topic string, topicRegex *regexp.Regexp, key string) (*Table, error)

Reg registers a topic to save it to memory store Create a new go routine to listen to the topic and save the data to memory

func (*Table) Read

func (t *Table) Read(keys []string, values []interface{}) ([]pubsub.MemTuple, error)

Jump to

Keyboard shortcuts

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