urlpolicy

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("goncho: invalid webhook url")

ErrInvalid reports a webhook endpoint URL that violates the endpoint policy.

Functions

func NormalizeEndpoint

func NormalizeEndpoint(raw string, maxLength int) (string, error)

NormalizeEndpoint trims, parses, and validates a webhook endpoint URL.

func RedactEndpoint

func RedactEndpoint(raw string) string

RedactEndpoint removes secret-bearing URL components before audit/evidence use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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