setting

package
v0.0.0-...-19bee3a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitVersion   = "invalid"
	BuildTime    = "invalid"
	BuildVersion = "invalid"
	BuildUser    = "invalid"
	ProjectName  = "invalid"
)
View Source
var (
	SetDefault     = viper.SetDefault
	Set            = viper.Set
	Get            = viper.Get
	GetString      = viper.GetString
	GetStringSlice = viper.GetStringSlice
	GetInt64       = viper.GetInt64
	GetBool        = viper.GetBool
	GetInt         = viper.GetInt
	Subscribe      = subscribe
)

Functions

func AppName

func AppName() string

AppName 获取应用名称

func GenerateDevelopKey

func GenerateDevelopKey() (string, error)

func GetGlobalKey

func GetGlobalKey() *ecdsa.PrivateKey

func GetGlobalPubKey

func GetGlobalPubKey() string

func GetJsGlobalPubKey

func GetJsGlobalPubKey() string

func GetSecret

func GetSecret() string

func GetStaticPageURL

func GetStaticPageURL() string

func GmKey

func GmKey() *sm2.PrivateKey

func IsDev

func IsDev() bool

IsDev 是否为开发模式

func MakePath

func MakePath(base string) func(...string) string

MakePath 制作路径函数

func SetMod

func SetMod(m string)

SetMod 设置模式

func UseAppPath

func UseAppPath(elem ...string) string

UseAppPath 使用系统路径

func UseConfigPath

func UseConfigPath(elem ...string) string

UseConfigPath 使用配置存储路径

func UseDataPath

func UseDataPath(elem ...string) string

UseDataPath 使用数据存储路径

func ValidateDevelopKey

func ValidateDevelopKey(passcode string, msg ...string) bool

func Write

func Write()

Write 写出配置文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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