iterx

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrYieldEnd = errors.New(`yield end`)

this error should not surface to the library user

Functions

func CookieFilterYield

func CookieFilterYield(ctx context.Context, cookie *kooky.Cookie, errCookie error, yield func(*kooky.Cookie, error) bool, filters ...kooky.Filter) bool

func ErrCookieSeq

func ErrCookieSeq(e error) kooky.CookieSeq

func NewLazyCookieFilterYielder added in v0.2.5

func NewLazyCookieFilterYielder(splitFilters bool, filters ...kooky.Filter) func(_ context.Context, yield func(*kooky.Cookie, error) bool, _ *kooky.Cookie, errCookie error, valRetriever func(*kooky.Cookie) error) bool

NewLazyCookieFilterYielder returns a yield helper that defers cookie value retrieval (e.g. decryption) until non-value filters have passed. When splitFilters is true, filters are split into value and non-value filters so that expensive operations like decryption are skipped for filtered-out cookies.

Types

This section is empty.

Jump to

Keyboard shortcuts

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