brokers

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithDataSource

func ContextWithDataSource(ctx context.Context, dc *raptorApi.DataSource) context.Context

func DataSourceFromContext

func DataSourceFromContext(ctx context.Context) *raptorApi.DataSource

func Register

func Register(name string, b Broker)

Register registers a broker

Types

type Broker

func Get

func Get(name string) Broker

Get retrieves a broker

type Metadata

type Metadata struct {
	Topic     string
	Timestamp time.Time
	ID        string
}

type MetadataExtractor

type MetadataExtractor func(ctx context.Context, msg *pubsub.Message) Metadata

type Unmarshaler

type Unmarshaler func(any) error

Jump to

Keyboard shortcuts

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