ConfigUtil

package
v0.0.0-...-3774c73 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Postgresql数据库服务器配置
	PgIp       string
	PgPort     string
	PgUser     string
	PgPwd      string
	PgDataBase string
	// 数据库备份的位置
	PgBackupFilePath string

	//云备份华为云的信息
	ObsAk         string
	ObsSk         string
	ObsEndpoint   string
	ObsBucketName string
	ObsPrefix     string

	//要发布到的主机信息
	DistributeIp         string
	DistributePort       int32
	DistributeUser       string
	DistributePwd        string
	DistributeRemotePath string
	DistributeLocalPath  string

	//服务器的端口
	ServerPort string
	//验证码的有效时间
	CaptchaExpireTime int32
	//REDIS配置
	RedisIp         string
	RedisPort       string
	RedisDb         string
	RedisExpireTime int64

	//Minio配置
	MinIoEndpoint        string
	MinIoAccessKeyID     string
	MinIoSecretAccessKey string
	MinIoBucketName      string

	//运行时配置
	StartPathWindows string
	StartPathLinux   string
)

Functions

This section is empty.

Types

type IniParser

type IniParser struct {
	// contains filtered or unexported fields
}

func (*IniParser) GetFloat32

func (this *IniParser) GetFloat32(section string, key string) float32

func (*IniParser) GetFloat64

func (this *IniParser) GetFloat64(section string, key string) float64

func (*IniParser) GetInt32

func (this *IniParser) GetInt32(section string, key string) int32

func (*IniParser) GetInt64

func (this *IniParser) GetInt64(section string, key string) int64

func (*IniParser) GetString

func (this *IniParser) GetString(section string, key string) string

func (*IniParser) GetUint32

func (this *IniParser) GetUint32(section string, key string) uint32

func (*IniParser) GetUint64

func (this *IniParser) GetUint64(section string, key string) uint64

func (*IniParser) Load

func (this *IniParser) Load(configFileName string) error

type IniParserError

type IniParserError struct {
	// contains filtered or unexported fields
}

func (*IniParserError) Error

func (e *IniParserError) Error() string

Jump to

Keyboard shortcuts

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