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 ErrCookieSeq ¶
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.
Click to show internal directories.
Click to hide internal directories.