middlewares

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth added in v0.8.6

func Auth() gin.HandlerFunc

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

func CheckFeaturesRequireLicense added in v0.8.6

func CheckFeaturesRequireLicense() gin.HandlerFunc

func DefaultStructuredLogger

func DefaultStructuredLogger() gin.HandlerFunc

DefaultStructuredLogger logs a gin HTTP request in JSON format. Uses the default logger from rs/zerolog.

func SetApprovedDomains added in v0.8.6

func SetApprovedDomains(domains []string)

func StructuredLogger

func StructuredLogger(logger *zerolog.Logger) gin.HandlerFunc

StructuredLogger logs a gin HTTP request in JSON format. Allows to set the logger for testing purposes.

Types

type LicenseRequiredResponse added in v0.8.6

type LicenseRequiredResponse struct {
	EnabledFeatures []license.Feature
}

Jump to

Keyboard shortcuts

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