config

package
v0.0.0-...-e25b398 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 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 AppConfig

type AppConfig struct {
	Server ServerConfig
	DB     DBConfig
}

func Load

func Load() AppConfig

type DBConfig

type DBConfig struct {
	Host           string
	Port           int
	User           string
	Password       string
	Name           string
	LoggingEnabled bool
}

type ServerConfig

type ServerConfig struct {
	Environment string
	Port        int
}

Jump to

Keyboard shortcuts

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