conf

package
v0.0.0-...-4aa34e7 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataIdDefault = "api.upload"
)

Variables

View Source
var (
	Conf Config

	ConfigPath string

	// ******* acm config ***********************
	CFG_ENDPOINT    = GetEnv("CFG_ENDPOINT", "acm.aliyun.com")
	CFG_NAMESPACEID = GetEnv("CFG_NAMESPACEID", "a23c93cd-491c-44dd-be30-fb1df6e6ddaf")
	CFG_ACCESSKEY   = GetEnv("CFG_ACCESSKEY", "LTAI4FgL4Ew4kGTSEWQ8gSbo")
	CFG_SECRETKEY   = GetEnv("CFG_SECRETKEY", "ZElyfnMQ4E4tE8QKJeXdZmgJ54Mgea")
	CFG_CLUSTER     = GetEnv("CFG_CLUSTER", "test")
)

Functions

func CheckErr

func CheckErr(err error)

func GetEnv

func GetEnv(key, value string) string

func GetFileConfFile

func GetFileConfFile() string

func InitConfig

func InitConfig()

初始化配置

Types

type Aliyun

type Aliyun struct {
	Endpoint        string
	AccessKeyId     string
	AccessKeySecret string
	BucketName      string
	BucketHost      string
}

type Config

type Config struct {
	Aliyun *Aliyun
}

Jump to

Keyboard shortcuts

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