eventtype

package
v0.0.0-...-a7b4c27 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPrefixNotFound = errors.New("prefix not found")
	ErrInvalidFormat  = errors.New("invalid format")
)

Functions

This section is empty.

Types

type Cleaner

type Cleaner interface {
	Clean(eventType string) (string, error)
}

func NewCleaner

func NewCleaner(eventTypePrefix string, logger *logger.Logger) Cleaner

func NewSimpleCleaner

func NewSimpleCleaner(eventTypePrefix string, logger *logger.Logger) Cleaner

type CleanerFunc

type CleanerFunc func(et string) (string, error)

CleanerFunc implements the Cleaner interface.

func (CleanerFunc) Clean

func (cf CleanerFunc) Clean(et string) (string, error)

Jump to

Keyboard shortcuts

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