pubsub

package
v1.14.6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 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 api.SourceTuple

func Produce

func Produce(ctx api.StreamContext, topic string, data map[string]interface{})

func ProduceError

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

func ProduceUpdatable

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

func RemovePub

func RemovePub(topic string)

func Reset

func Reset()

Reset For testing only

Types

type UpdatableTuple

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

Jump to

Keyboard shortcuts

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