ingest

package
v0.3.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEventKey

func GetEventKey(namespace string, ev event.Event) string

CloudEvents are unique based on the source and id

Types

type Collector

type Collector interface {
	Ingest(ev event.Event, namespace string) error
	Close()
}

Collector is a receiver of events that handles sending those events to some downstream broker.

type Deduplicator

type Deduplicator interface {
	IsUnique(ctx context.Context, namespace string, ev event.Event) (bool, error)
	Set(ctx context.Context, namespace string, ev event.Event) (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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