config

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: BSD-3-Clause Imports: 7 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 {
	EnvName         string
	BindAddr        net.IP
	BindPort        uint
	SentryDSN       string
	CacheDSN        string
	PublicationPath string
	StaticPath      string
	Origins         []string

	LogFile   string
	LogFormat string
	LogLevel  string
}

Config holds all configuration for our program

func NewConfig

func NewConfig() Config

NewConfig creates a Config instance

func (*Config) BindFlags

func (cnf *Config) BindFlags()

BindFlags normalizes and parses the command line flags

func (*Config) InDev

func (cnf *Config) InDev() bool

InDev determines whether the server is being run in a dev env

func (*Config) InProfile

func (cnf *Config) InProfile() bool

InProfile determines whether the server is being run in a env that should be profiled

Jump to

Keyboard shortcuts

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