configs

package
v0.0.0-...-179e57f Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var App = new(AppConf)
View Source
var RootPath string

Functions

This section is empty.

Types

type AppConf

type AppConf struct {
	MysqlConf   `ini:"mysql"`
	RedisConf   `ini:"redis"`
	SessionConf `ini:"session"`
	BaseConf    `ini:"base"`
}

type BaseConf

type BaseConf struct {
	Port         string `ini:"port"`
	Host         string `ini:"host"`
	FillData     bool   `ini:"fill_data"`
	MigrateTable bool   `ini:"migrate_table"`
	LogMedia     string `ini:"log_media"`
}

type MysqlConf

type MysqlConf struct {
	Host        string `ini:"host"`
	Port        string `ini:"port"`
	UserName    string `ini:"username"`
	Password    string `ini:"password"`
	Database    string `ini:"database"`
	MaxOpenConn int    `ini:"max_open_conn"`
	MaxIdleConn int    `ini:"max_idle_conn"`
}

type RedisConf

type RedisConf struct {
	Addr     string `ini:"addr"`
	Db       int    `ini:"db"`
	Password string `ini:"password"`
}

type SessionConf

type SessionConf struct {
	SessionName string `ini:"session_name"`
}

Jump to

Keyboard shortcuts

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