Documentation
¶
Index ¶
- func GetBinFolderPath() string
- func GetDBFolderPath() string
- func GetDBPath() string
- func GetName() string
- func GetVersion() string
- func IsDBConfigFromEnv() bool
- func IsDebug() bool
- func SetDBConfig(cfg DBConfig) error
- func SetDBFolderPath(folderPath string) error
- type DBConfig
- type DBType
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBinFolderPath ¶
func GetBinFolderPath() string
func GetDBFolderPath ¶
func GetDBFolderPath() string
func GetVersion ¶
func GetVersion() string
func IsDBConfigFromEnv ¶
func IsDBConfigFromEnv() bool
func SetDBConfig ¶
func SetDBFolderPath ¶
Types ¶
type DBConfig ¶
type DBConfig struct {
Type DBType `json:"type" form:"type"`
Host string `json:"host" form:"host"`
Port int `json:"port" form:"port"`
Name string `json:"name" form:"name"`
User string `json:"user" form:"user"`
Password string `json:"password,omitempty" form:"password"`
Params string `json:"params" form:"params"`
DSN string `json:"dsn,omitempty" form:"dsn"`
}
func DefaultDBConfig ¶
func DefaultDBConfig() DBConfig
func GetDBConfig ¶
func GetDBConfig() DBConfig
func (DBConfig) IsMySQLCompatible ¶
func (DBConfig) Normalized ¶
Click to show internal directories.
Click to hide internal directories.