package
1.0.11
Repository: https://github.com/rookie-ninja/rk-entry.git
Documentation: pkg.go.dev

# Functions

NewBeforeCtx create new BeforeCtx with fields initialized.
NewOptionSet Create new optionSet with options.
NewOptionSetMock for testing purpose.
ToOptions convert BootConfig into Option list.
WithCookieDomain provide domain of the CSRF cookie.
WithCookieHTTPOnly indicates if CSRF cookie is HTTP only.
WithCookieMaxAge provide max age (in seconds) of the CSRF cookie.
WithCookieName provide name of the CSRF cookie.
WithCookiePath provide path of the CSRF cookie.
WithCookieSameSite indicates SameSite mode of the CSRF cookie.
WithEntryNameAndType provide entry name and entry type.
WithExtractor provide user extractor.
WithIgnorePrefix provide paths prefix that will ignore.
WithMockOptionSet provide mock OptionSetInterface.
WithTokenLength the length of the generated token.
WithTokenLookup a string in the form of "<source>:<key>" that is used to extract token from the request.

# Structs

BeforeCtx context for Before() function.
BootConfig for YAML.

# Interfaces

OptionSetInterface mainly for testing purpose.

# Type aliases

No description provided by the author
Option.