webhook

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	Monitor *monitor.Worker
	Store   *store.Store
	URL     string
	Secret  string
	Client  *http.Client
	Now     func() time.Time
	Logger  *slog.Logger
}

func New

func New(db *store.Store, destination, secret string, logger *slog.Logger) *Worker

func (*Worker) Run

func (w *Worker) Run(ctx context.Context)

func (*Worker) Step

func (w *Worker) Step(ctx context.Context) error

Jump to

Keyboard shortcuts

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