featureflags

package
v0.0.0-...-b608779 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultValueAllowLogin       = true
	DefaultValueAllowSubmission  = true
	DefaultValueUpdateScoreboard = true
)

Variables

This section is empty.

Functions

func IsLoginAllowed

func IsLoginAllowed() bool

func IsSubmissionAllowed

func IsSubmissionAllowed() bool

func ShouldUpdateScoreboard

func ShouldUpdateScoreboard() bool

Types

type FeatureFlags

type FeatureFlags struct {
	AllowLogin       bool `yaml:"allow_login"`
	AllowSubmission  bool `yaml:"allow_submission"`
	UpdateScoreboard bool `yaml:"update_scoreboard"`
}

func GetFeatureFlags

func GetFeatureFlags() (FeatureFlags, error)

Jump to

Keyboard shortcuts

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