config

package
v0.0.0-...-ad6e858 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Load in from the config

Types

type Config

type Config struct {
	Mode string   `hcl:"Mode"`
	Port string   `hcl:"Port"`
	DB   DBConfig `hcl:"DB,block"`
}

the base of the struct that the data goes into

var CONFIG Config

a global variable to be able to access anywhere

type DBConfig

type DBConfig struct {
	Host     string `hcl:"Host"`
	Port     string `hcl:"Port"`
	User     string `hcl:"User"`
	Password string `hcl:"Password"`
	DBName   string `hcl:"DBName"`
	SSLMode  string `hcl:"SSLMode"`
}

Jump to

Keyboard shortcuts

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