conf

package
v0.0.0-...-83425ee Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigInit bool
View Source
var ConfigInitOverForDb chan bool

Functions

func BufferCount

func BufferCount() int

func Logging

func Logging() bool

func ReadConfig

func ReadConfig(path string)

func SetLogging

func SetLogging(f bool)

Types

type AppConfig

type AppConfig struct {
	Secret   string
	Buffers  int // the count of buffers
	Database string
	Mysql    *DbConfig
	Pg       *DbConfig
}
var Config AppConfig

type DbConfig

type DbConfig struct {
	Host     string
	Port     int
	Username string
	Password string
	Database string
}

type RunConfig

type RunConfig struct {
	Logging bool
	Mode    int
}
var Run *RunConfig

Jump to

Keyboard shortcuts

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