store

package
v1.14.0-dev.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 8 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{}) ([]api.SourceTuple, error)

Jump to

Keyboard shortcuts

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