config

package
v0.0.0-...-c3f8886 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg *cfg = getCfg()
View Source
var Configure = getConfig()

Functions

This section is empty.

Types

type App

type App struct {
	Addr string `yaml:"addr"` // App 地址
	Port string `yaml:"port"` // App 端口
}

app env config

type Options

type Options struct {
	App    `yaml:",inline"` // App 运行设置
	System `yaml:",inline"` // App 系统级配置
}

options

type System

type System struct {
	Logdir   string `yaml:"logdir"`   // 日志路径
	Datadir  string `yaml:"datadir"`  // 数据路径
	LogLevel string `yaml:"loglevel"` // 日志等级
	TimeZone string `yaml:"timezone"` // 时区设置
}

Jump to

Keyboard shortcuts

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