config

package
v0.0.0-...-6a21cee Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 5 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 {
	Hostname           string
	Port               string
	DBURL              string
	DBToken            string
	LogLevel           slog.Level
	AppEnv             string
	UseHTTPS           bool
	GithubClientID     string
	GithubClientSecret string
}

func LoadConfig

func LoadConfig() (*Config, error)

LoadConfig loads configuration from environment variables or an .env file if not in production

func (*Config) GetDBURL

func (c *Config) GetDBURL() string

GetDBURL returns the database URL with the auth token

func (*Config) GetHostURL

func (c *Config) GetHostURL() string

GetHostURL returns the host URL

Jump to

Keyboard shortcuts

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