Discover Packages
github.com/feng2009/oa_zs
modules
v1
initdb
package
Version:
v0.0.0-...-6e4d488
Opens a new window with list of versions in this module.
Published: Mar 30, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Check(ctx iris.Context)
Check 检测是否需要初始化项目
func GetAll(ctx iris.Context)
func Init(ctx iris.Context)
InitDB 初始化项目接口
type Cache struct {
Host string `json:"host" validate:"required"`
Port string `json:"port" validate:"required"`
Password string `json:"password"`
PoolSize int `json:"poolSize"`
DB int `json:"db"`
}
type Request struct {
Sql Sql `json:"sql"`
SqlType string `json:"sqlType" validate:"required"`
Cache Cache `json:"cache"`
CacheType string `json:"cacheType" validate:"required"`
Level string `json:"level"`
Addr string `json:"addr"`
}
type Sql struct {
Host string `json:"host" validate:"required"`
Port string `json:"port" validate:"required"`
UserName string `json:"userName" validate:"required"`
Password string `json:"password" validate:"required"`
DBName string `json:"dbName" validate:"required"`
LogMode bool `json:"logMode"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.