cli

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigFileName = "config.yaml"
	DefaultCacheFileName  = "cache.db"
)

Variables

View Source
var (
	ConfigFileDir  = "/conf/"
	UploadFilePath = "/uploads/"
	I18nPath       = "/i18n/"
	CacheDir       = "/cache/"
)

Functions

func CheckConfigFile

func CheckConfigFile(configPath string) bool

func CheckDBConnection added in v0.3.0

func CheckDBConnection(dataConf *data.Database) bool

CheckDBConnection check database whether the connection is normal

func CheckDBTableExist added in v0.3.0

func CheckDBTableExist(dataConf *data.Database) bool

CheckDBTableExist check database whether the table is already exists

func CheckUploadDir

func CheckUploadDir() bool

func DumpAllData

func DumpAllData(dataConf *data.Database, dumpDataPath string) error

DumpAllData dump all database data to sql

func FormatAllPath added in v0.3.0

func FormatAllPath(dataDirPath string)

func GetConfigFilePath added in v0.3.0

func GetConfigFilePath() string

GetConfigFilePath get config file path

func InstallAllInitialEnvironment

func InstallAllInitialEnvironment(dataDirPath string)

InstallAllInitialEnvironment install all initial environment

func InstallConfigFile added in v0.3.0

func InstallConfigFile(configFilePath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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