config

package
v0.0.0-...-31e7f02 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EnvironmentName      string
	LogLevel             slog.Leveler
	ApplicationName      string
	ApplicationVersion   string
	HTTPPort             int
	ProxyCount           int
	PublicHost           string
	BaseURL              string
	RedirectWWW          bool
	CDN                  string
	MaxRequestSize       int64
	DisqusShortname      string
	GoogleCloudProjectID string
}

func Load

func Load() *Config

func (*Config) DomainRedirects

func (c *Config) DomainRedirects() map[string]string

func (*Config) HotReload

func (c *Config) HotReload() bool

func (*Config) IsProduction

func (c *Config) IsProduction() bool

func (*Config) MinLogLevel

func (c *Config) MinLogLevel() slog.Leveler

func (*Config) PublicHosts

func (c *Config) PublicHosts() []string

func (*Config) ServerAddress

func (c *Config) ServerAddress() string

Jump to

Keyboard shortcuts

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