utilconfig

package
v0.0.0-...-46bccf7 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 2 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 {
	DBDriver          string `mapstructure:"DB_DRIVER"`
	DBSourceLocal     string `mapstructure:"DB_SOURCE_LOCAL"`
	DBSourceContainer string `mapstructure:"DB_SOURCE_CONTAINER"`
	ServerAddress     string `mapstructure:"SERVER_ADDRESS"`
	APIKey            string `mapstructure:"API_KEY"`
	APIKeyValue       string `mapstructure:"API_KEY_VALUE"`
}

func LoadConfig

func LoadConfig(path string) (config *Config, err error)

Jump to

Keyboard shortcuts

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