config

package
v0.0.0-...-ebd9f65 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	General  cfg
	Database MySQL
)

Functions

func FeslClientAddr

func FeslClientAddr() string

func FeslServerAddr

func FeslServerAddr() string

func Initialize

func Initialize()

func LogLevel

func LogLevel() logrus.Level

LogLevel parses a default log level from a string

func ParseCertificate

func ParseCertificate() (tls.Certificate, error)

func ThtrClientAddr

func ThtrClientAddr() string

func ThtrServerAddr

func ThtrServerAddr() string

Types

type MySQL

type MySQL struct {
	UserName string `envconfig:"DATABASE_USERNAME" default:"root"`
	Password string `envconfig:"DATABASE_PASSWORD"`
	Host     string `envconfig:"DATABASE_HOST" default:"127.0.0.1"`
	Port     int    `envconfig:"DATABASE_PORT" default:"3306"`
	Name     string `envconfig:"DATABASE_NAME" default:"naomi"`
}

Jump to

Keyboard shortcuts

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