filter

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InRange

func InRange(deliveredAt time.Time, since, until *time.Time) bool

InRange checks if the delivered time is within the specified date range

func IsFailed

func IsFailed(statusCode int) bool

IsFailed checks if a delivery represents a failed webhook delivery Failed deliveries are: - HTTP status code >= 400 (4xx and 5xx errors) - Status code 0 (no response/delivery failed)

func IsSuccessful

func IsSuccessful(statusCode int) bool

IsSuccessful checks if a delivery represents a successful webhook delivery Successful deliveries are HTTP status code 200-399

func MatchesPattern

func MatchesPattern(url, pattern string) bool

MatchesPattern checks if a URL matches the given pattern (case-insensitive substring matching)

func MatchesStatus

func MatchesStatus(statusCode int, filterType string) bool

MatchesStatus checks if a delivery matches the given status filter filterType can be: "failed", "successful", "all" (or empty for no filter) This provides extensibility for future --status flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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