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

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