config

package
v0.0.0-...-9e60c09 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DevelopmentMode = "development-mode"
	Port            = "port"
	LogLevel        = "log-level"
	ProtectedRules  = "protected-rules"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DevelopmentMode bool     `json:"development-mode"`
	Port            string   `json:"port"`
	LogLevel        string   `json:"log-level"`
	ProtectedRules  []string `json:"protected-rules"`
}

func NewConfig

func NewConfig() (*Config, error)

func SetupConfig

func SetupConfig() (*Config, error)

func (*Config) IsProtectedRule

func (c *Config) IsProtectedRule(priority string) bool

func (*Config) Validate

func (c *Config) Validate(required []string) error

Jump to

Keyboard shortcuts

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