pubsub

package
v2.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const IdProperty = "topic"

Variables

This section is empty.

Functions

func CloseSourceConsumerChannel

func CloseSourceConsumerChannel(topic string, sourceId string)

func CreatePub

func CreatePub(topic string)

func CreateSub

func CreateSub(wildcard string, regex *regexp.Regexp, sourceId string, bufferLength int) chan any

func Produce

func Produce(ctx api.StreamContext, topic string, data MemTuple)

func ProduceAny

func ProduceAny(ctx api.StreamContext, topic string, data any)

func ProduceError

func ProduceError(ctx api.StreamContext, topic string, err error)

func ProduceList

func ProduceList(ctx api.StreamContext, topic string, list []MemTuple)

func RemovePub

func RemovePub(topic string)

func Reset

func Reset()

Reset For testing only

Types

type MemTuple

type MemTuple interface {
	Value(key, table string) (any, bool)
	ToMap() map[string]any
}

type UpdatableTuple

type UpdatableTuple struct {
	MemTuple
	Rowkind string
	Keyval  interface{}
}

Jump to

Keyboard shortcuts

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