config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 4 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 {
	DBDSN    string `yaml:"DBDSN"`
	RedisDSN string `yaml:"REDISDSN"`
}

Config is the configuration for the application

func LoadConfigFromEnvVar added in v0.2.0

func LoadConfigFromEnvVar() Config

LoadConfigFromEnvVar loads the configuration from environment variables

func LoadConfigFromFile added in v0.2.0

func LoadConfigFromFile(filename string) (Config, error)

LoadConfigFromFile loads the configuration from a file

func (*Config) IsValid

func (c *Config) IsValid() bool

IsValid checks if the configuration is valid

Jump to

Keyboard shortcuts

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