pubsub

package
v2.0.0-dev.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 5 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 api.Tuple)

func ProduceList

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

func ProduceUpdatable

func ProduceUpdatable(ctx api.StreamContext, topic string, data api.Tuple, rowkind string, keyval interface{})

func RemovePub

func RemovePub(topic string)

func Reset

func Reset()

Reset For testing only

Types

type UpdatableTuple

type UpdatableTuple struct {
	*model.DefaultSourceTuple
	Rowkind string
	Keyval  interface{}
}

Jump to

Keyboard shortcuts

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