config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeDev  = "dev"
	ModeProd = "prod"

	MongoDbName      = "fse"
	FileInfoMongoCol = "fileInfo"
)

Variables

View Source
var (
	Conf = New()
)

Functions

This section is empty.

Types

type Config

type Config struct {
	RunMode   string // FSE_RunMode: server的运行模式,dev 或 prod,默认是dev
	FileDir   string // FSE_FileDir: 上传的文件的存储路径
	Host      string // FSE_Host
	Port      string // FSE_Port
	MongoHost string
	MongoPort string
}

func New

func New() *Config

Jump to

Keyboard shortcuts

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