eventbridgeservice

package
v0.0.75 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMappingNotFound = fmt.Errorf("mapping not found: %w", apiframework.ErrNotFound)
)

Functions

This section is empty.

Types

type Bus

type Bus interface {
	Ingest(ctx context.Context, event ...eventstore.Event) error
}

type Renderer

type Renderer interface {
	Sync(ctx context.Context) error
}

type Service

type Service interface {
	Bus
	ListMappings(ctx context.Context) ([]eventstore.MappingConfig, error)
	GetMapping(ctx context.Context, path string) (*eventstore.MappingConfig, error)
	Renderer
}

func New

func New(
	eventMapping eventmappingservice.Service,
	eventsource eventsourceservice.Service,
	syncInterval time.Duration,
) Service

New creates a new eventBridge instance with initial synchronization

Jump to

Keyboard shortcuts

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