config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IniConfigByImport

func IniConfigByImport(cmbConfig *Config)

IniConfigByImport

@Description:  配置导入
@param cmbConfig
@Author  ahKevinXy
@Date2023-04-13 15:04:18

func InitConfigByFilePath

func InitConfigByFilePath(path string)

InitConfigByFilePath 初始化配置

Types

type CmbPay

type CmbPay struct {
	CmbSaasName       string `toml:"cmb_saas_name"`        //Sass名称
	CmbUrl            string `toml:"cmb_url"`              //招商银行名称
	CmbSaasPrivateKey string `toml:"cmb_saas_private_key"` //私钥
	CmbSigdatDefult   string `toml:"cmb_sigdat_defult"`    //默认签名

	CmbAccountUrl string `toml:"cmb_account_url"` //通知名称

	Sm2Jar     string `toml:"sm2_jar"`      // sm2 Java sdk
	CmbSignUrl string `toml:"cmb_sign_url"` // 签名地址
}

type Config

type Config struct {
	CmbPay `toml:"cmb_pay"`
}
var Settings *Config = &Config{}

Settings 全局配置

Jump to

Keyboard shortcuts

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