interceptor

package
v0.0.0-...-90106bd Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interceptor

type Interceptor interface {
	Handle(ctx context.Context, src string, ssEvt *sse.Event, raw map[string]any) (matches bool, err error)
}

func NewDefault

func NewDefault(w writer.Service) Interceptor

func NewLogging

func NewLogging(i Interceptor, log *slog.Logger, t string) Interceptor

func NewMastodon

func NewMastodon(cfgEvts config.EventsConfig, w events.Writer) Interceptor

func NewWikiMedia

func NewWikiMedia(w writer.Service, groupId, et string) Interceptor

Jump to

Keyboard shortcuts

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