eventmappingservice

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidMapping   = errors.New("invalid mapping configuration")
	ErrInvalidParameter = errors.New("invalid parameter")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateMapping(ctx context.Context, config *eventstore.MappingConfig) error
	GetMapping(ctx context.Context, path string) (*eventstore.MappingConfig, error)
	UpdateMapping(ctx context.Context, config *eventstore.MappingConfig) error
	DeleteMapping(ctx context.Context, path string) error
	ListMappings(ctx context.Context) ([]*eventstore.MappingConfig, error)
}

Service defines the interface for managing event mapping configurations

func New

func New(db libdb.DBManager) Service

New creates a new mapping service

func WithActivityTracker

func WithActivityTracker(service Service, tracker libtracker.ActivityTracker) Service

WithActivityTracker decorates a Service with activity tracking

Jump to

Keyboard shortcuts

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