webhooks

package
v0.1.0-rc.41 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

package webhookcatalog resolves bounded provider sender policies for control.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnavailable = errors.New("webhook provider source unavailable")
View Source
var ErrUnknown = errors.New("unknown webhook provider")

Functions

This section is empty.

Types

type Catalog

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

func New

func New(client *http.Client) *Catalog

func (*Catalog) Read

func (c *Catalog) Read(ctx context.Context, name string) (Result, error)

Read returns a validated policy or a bounded last-good copy; it never widens on failure.

type Result

type Result struct {
	Source Source
	ETag   string
	MaxAge int
}

type Source

type Source struct {
	Kind   string   `json:"kind"`
	Ranges []string `json:"ranges,omitempty"`
}

Jump to

Keyboard shortcuts

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