middleware

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorsMiddleware

type CorsMiddleware struct {
	AllowedOrigins []string
	AllowedHeaders string
	Logger         logger.EmojigambleLogger
}

func (*CorsMiddleware) Cors

func (cm *CorsMiddleware) Cors(next http.Handler) http.Handler

Provides a middleware that allows Cross-Origin-Requests.

Jump to

Keyboard shortcuts

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