configurationManager

package
v0.0.0-...-2985fdd Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CANConfig canConfig = canConfig{}
View Source
var CanGroup []canGroup = []canGroup{}
View Source
var CanGroupMap map[int]string = make(map[int]string)
View Source
var DBConfig []dbConfig = []dbConfig{}

Functions

func AppSetting

func AppSetting(key string) string

func GetDatabaseConnStr

func GetDatabaseConnStr() (string, error)

数据库链接字符串

func GetIni

func GetIni(key IniKeyType) (string, error)

根据键,获取值

func GetMode

func GetMode() (string, error)

func SetIni

func SetIni(key IniKeyType, val string) error

添加新键值对

Types

type IniKeyType

type IniKeyType string
const (
	DATABASE         IniKeyType = "database"
	DATABASE_CONNSTR IniKeyType = "database_connstr"
	Model            IniKeyType = "mode"
)

func (IniKeyType) String

func (key IniKeyType) String() string

Jump to

Keyboard shortcuts

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