corsx

package
v0.0.142 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelpMessage

func HelpMessage() string

HelpMessage returns a string containing information on setting up this CORS middleware.

func Initialize

func Initialize(h http.Handler, l *logrusx.Logger, prefix string) http.Handler

Initialize starts the CORS middleware for a http.Handler when cors is enabled.

func IsEnabled added in v0.0.39

func IsEnabled(l *logrusx.Logger, prefix string) bool

IsEnabled returns true when CORS is enabled.

func ParseOptions

func ParseOptions(l *logrusx.Logger, prefix string) cors.Options

ParseOptions parses CORS settings by using the `viper` framework.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL