Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func AllowCredentials ¶
AlloweCredentials provides a function to set the AllowCredentials option.
func AllowedHeaders ¶
AllowedHeaders provides a function to set the AllowedHeaders option.
func AllowedMethods ¶
AllowedMethods provides a function to set the AllowedMethods option.
func AllowedOrigins ¶
AllowedOrigins provides a function to set the AllowedOrigins option.
type Options ¶
type Options struct { // Logger to use for logging, must be set Logger log.Logger // AllowedOrigins represents the allowed CORS origins AllowedOrigins []string // AllowedMethods represents the allowed CORS methods AllowedMethods []string // AllowedHeaders represents the allowed CORS headers AllowedHeaders []string // AllowCredentials represents the AllowCredentials CORS option AllowCredentials bool }
Options defines the available options for this package.
func NewOptions ¶
newAccountOptions initializes the available default options.
Click to show internal directories.
Click to hide internal directories.