config

package
v0.0.0-...-a5e1e4d Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB_TYPE_MYSQL = "mysql"
	DB_TYPE_NEO4J = "neo4j"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database
}

func LoadConfig

func LoadConfig() (*Config, error)

type Database

type Database struct {
	Type     string `env:"DB_TYPE"`
	Name     string `env:"DB_NAME"`
	Username string `env:"DB_USERNAME"`
	Password string `env:"DB_PASSWORD"`
	Hostname string `env:"DB_HOSTNAME"`
}

Jump to

Keyboard shortcuts

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