eventhandler

package
v1.0.0-beta.203 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Repository        notification.Repository
	Webhook           webhook.Handler
	Logger            *slog.Logger
	ReconcileInterval time.Duration
}

func (*Config) Validate

func (c *Config) Validate() error

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Handler, error)

func (*Handler) Close

func (h *Handler) Close() error

func (*Handler) Dispatch

func (h *Handler) Dispatch(event *notification.Event) error

func (*Handler) Reconcile

func (h *Handler) Reconcile(ctx context.Context) error

func (*Handler) Start

func (h *Handler) Start() error

Jump to

Keyboard shortcuts

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