config

package
v0.0.0-...-de87630 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Id      uint   // 服务器id
	Name    string // 服务器名称
	Addr    string // 服务器监听地址
	Schemes string // 服务器监听方式 http/https
	Debug   bool   // 是否启动debug
	LogPath string // 日志保存文件路径

	CacheSwitch string // 使用何种缓存引擎 可用 default/redis default为默认内存缓存
	// contains filtered or unexported fields
}

func (*Config) Default

func (c *Config) Default()

默认初始化

func (*Config) GetLogLevel

func (c *Config) GetLogLevel() string

func (*Config) Init

func (c *Config) Init()

初始化

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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