config

package
v0.0.0-...-0716d42 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = libConfig.AppName
	EnvName = libConfig.EnvName

	HTTPBindAddress = libHttp.HTTPBindAddress
	HTTPBindPort    = libHttp.HTTPBindPort

	APIURL        = "api-url"
	BaseURL       = "base-url"
	IsSecure      = "is-secure"
	SessionSecret = "session-secret"
	Slow          = "slow"
	SlowDuration  = "slow-duration"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Config  *libConfig.Config
	HTTP    *libHttp.Config
	Logging *libLog.Config
	Redis   *libRedis.Config

	APIURL        string
	BaseURL       string
	IsSecure      bool
	SessionSecret string
	Slow          bool
	SlowDuration  time.Duration
}

Config holds all configuration for our program

func New

func New() *Config

New creates a Config instance

func (*Config) BindFlags

func (c *Config) BindFlags()

Jump to

Keyboard shortcuts

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