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
Click to show internal directories.
Click to hide internal directories.