conf

package
v0.0.0-...-021e1c0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package conf 用于项目基础配置。

Index

Constants

This section is empty.

Variables

View Source
var (
	// Env 代表当前运行环境
	Env string
	// C 代表当前运行配置对象
	C *Conf
	// TestCase 运行单元测试时,会设为true
	TestCase bool
)

Functions

This section is empty.

Types

type Conf

type Conf struct {
	// 基本配置
	App *struct {
		Name string
		Ip   string
		Port int
	}
	// clog日志输出配置
	Clog *struct {
		Name  string
		Mode  int
		Level int
	}
	// 各种名字或addr配置
	Addrs *struct {
		Clog string
	}
}

Conf 定义配置参数

Jump to

Keyboard shortcuts

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