webhook

package
v0.0.0-...-4f574f2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRunner

func DefaultRunner(ctx context.Context, j *models.Job, params map[string]string) error

func FireHTTPTrigger

func FireHTTPTrigger(ctx context.Context, jobSvc JobLister, trig *models.Trigger, params map[string]string, runner Runner) error

func ReceiveWith

func ReceiveWith(auditor *auth.AuditLogger) func(*echo.Context) error

ReceiveWith returns a handler that uses the given auditor for failure logging.

func ReceiveWithServices

func ReceiveWithServices(c *echo.Context, trigSvc TriggerLister, jobSvc JobLister, auditor *auth.AuditLogger, runner Runner, opts ...triggerhttp.Option) error

Types

type JobLister

type JobLister interface {
	List(*jsvc.ListRequest) (models.Jobs, error)
}

type Runner

type Runner func(context.Context, *models.Job, map[string]string) error

type TriggerLister

type TriggerLister interface {
	ListByPath(string) (models.Triggers, error)
}

Jump to

Keyboard shortcuts

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