conf

package
v0.0.0-...-da9a27d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Conf default config
	Conf = Config{
		WebListen: "0.0.0.0:8080",
		Redis: &storage.RedisConf{
			NetWork:     "tcp",
			HostAddr:    "localhost:6480",
			MaxIdle:     16,
			IdleTimeout: 240,
		},
		DB: &storage.DataBase{
			DriverName: "mysql",
			Host:       "127.0.0.1",
			Port:       3306,
			User:       "root",
			PassWord:   "ee123456",
			DBName:     "1024Helper",
		},
		Engine: &engine.Config{
			HTTP: engine.HTTPConf{
				Listen:  ":12000",
				Actived: true,
			},
		},
	}
)

Functions

func Init

func Init() error

Init init config

Types

type Config

type Config struct {
	WebListen string
	DB        *storage.DataBase
	Redis     *storage.RedisConf
	Engine    *engine.Config
}

Config ...

Jump to

Keyboard shortcuts

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