feature

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnforceDomainRateLimits = Feature{
	EnvVariable: "FF_ENFORCE_DOMAIN_RATE_LIMITS",
}

EnforceDomainRateLimits enforces domain rate limiter to drop requests TODO: remove https://gitlab.com/gitlab-org/gitlab-pages/-/issues/655

View Source
var EnforceIPRateLimits = Feature{
	EnvVariable: "FF_ENFORCE_IP_RATE_LIMITS",
}

EnforceIPRateLimits enforces IP rate limiter to drop requests TODO: remove https://gitlab.com/gitlab-org/gitlab-pages/-/issues/629

View Source
var RedirectsPlaceholders = Feature{
	EnvVariable: "FF_ENABLE_PLACEHOLDERS",
}

RedirectsPlaceholders enables support for placeholders in redirects file TODO: remove https://gitlab.com/gitlab-org/gitlab-pages/-/issues/620

Functions

This section is empty.

Types

type Feature

type Feature struct {
	EnvVariable string
	// contains filtered or unexported fields
}

func (Feature) Enabled

func (f Feature) Enabled() bool

Enabled reads the environment variable responsible for the feature flag if FF is disabled by default, the environment variable needs to be "true" to explicitly enable it if FF is enabled by default, variable needs to be "false" to explicitly disable it

Jump to

Keyboard shortcuts

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