config

package
v0.0.0-...-4702f85 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

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

Types

type Config

type Config struct {
	Address  string
	Port     uint16
	Database Database `toml:database`
}

type Database

type Database struct {
	User     string
	Password string
	Name     string
	Host     string
	Port     uint16
	SSLMode  string
}

Jump to

Keyboard shortcuts

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