config

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Zlib Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBUrl

func DBUrl() string

DBUrl will return database url

func HomeDir

func HomeDir() string

HomeDir detects and returns the home directory for the executing user. This uses an OS-specific method for discovering the home directory. An error is returned if a home directory cannot be detected.

Types

type DBConfiguration

type DBConfiguration struct {
	User     string `ini:"user"`
	Password string `ini:"password"`
	Port     string `ini:"port"`
	DBName   string `ini:"name"`
	DBUrl    string `ini:"url"`
}

DBConfiguration is custom configuration for DB

Jump to

Keyboard shortcuts

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