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 WithActivityTracker ¶
func WithActivityTracker(service Service, tracker libtracker.ActivityTracker) Service
WithActivityTracker decorates a Service with activity tracking
Click to show internal directories.
Click to hide internal directories.