interceptor

package
v0.0.0-...-906d962 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 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(svcPub pub.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(svcPub pub.Service, groupId, et string) Interceptor

Jump to

Keyboard shortcuts

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