Versions in this module Expand all Collapse all v2 v2.2.3 Jun 24, 2022 Changes in this version + type BeforeCtx struct + Input struct{ ... } + Output struct{ ... } + func NewBeforeCtx() *BeforeCtx + type BootConfig struct + CookieDomain string + CookieHttpOnly bool + CookieMaxAge int + CookieName string + CookiePath string + CookieSameSite string + Enabled bool + Ignore []string + TokenLength int + TokenLookup string + type CsrfExtractor func(ctx context.Context) (string, error) + type Option func(*optionSet) + func ToOptions(config *BootConfig, entryName, entryType string) []Option + func WithCookieDomain(val string) Option + func WithCookieHTTPOnly(val bool) Option + func WithCookieMaxAge(val int) Option + func WithCookieName(val string) Option + func WithCookiePath(val string) Option + func WithCookieSameSite(val http.SameSite) Option + func WithEntryNameAndType(entryName, entryType string) Option + func WithExtractor(ex CsrfExtractor) Option + func WithMockOptionSet(mock OptionSetInterface) Option + func WithPathToIgnore(paths ...string) Option + func WithTokenLength(val int) Option + func WithTokenLookup(val string) Option + type OptionSetInterface interface + Before func(*BeforeCtx) + BeforeCtx func(*http.Request) *BeforeCtx + GetEntryName func() string + GetEntryType func() string + ShouldIgnore func(string) bool + func NewOptionSet(opts ...Option) OptionSetInterface + func NewOptionSetMock(before *BeforeCtx) OptionSetInterface