receiver

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(ctx context.Context, event cloudevents.Event) error

Handler is a function that handles a CloudEvent.

func New

func New(ctx context.Context, issuer, group string, fn Handler) (Handler, error)

New returns a new Handler that verifies the Event was sent by Chainguard, intended for the specified Group, then invokes the provided Handler.

TODO(jason): Accept options for configuring the issuer and accepted event types.

Jump to

Keyboard shortcuts

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