config

package
v0.0.0-...-0917785 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Unlicense Imports: 4 Imported by: 9

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