eventhandler

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

type EventHandler interface {
	Process(ctx context.Context, event []*models.Event, resume bool) error
}

EventHandler processes new events by registered handlers

type Service

type Service interface {
	RegisterEventHandler(name string, eh EventHandler) error
	StopAndWait()
	Start()
}

func NewService

func NewService(ctx context.Context, manager *managerparam.Manager, config eventhandlerconfig.Config) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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