package
2.2.22
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.
WithAllowCredentials allow credentials or not.
WithAllowHeaders provide allowed headers.
WithAllowMethods provide allowed http methods.
WithAllowOrigins provide allowed origins.
WithEntryNameAndType provide entry name and entry type.
WithExposeHeaders provide expose headers.
WithMaxAge provide max age.
WithMockOptionSet provide mock OptionSetInterface.
WithPathToIgnore provide paths prefix that will ignore.

# Structs

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

# Interfaces

OptionSetInterface mainly for testing purpose.

# Type aliases

Option.