Documentation
¶
Index ¶
- func CachesGet(key string) (value interface{}, isOk bool)
- func CachesGetStr(key string) (value string)
- func CachesInit()
- func CachesSet(key string, value interface{})
- func CachesSetAlways(key string, value interface{})
- func CreateMysqlDB(host, port, user, password, dbname string) (bool, error)
- func CreatePgsqlDB(host, user, password, dbname string) (bool, error)
- func CreateSqliteDB() (bool, error)
- func GetDBConns() *gorm.DB
- func GetPgsqlConn() (*gorm.DB, error)
- func GetSqliteConn() (*gorm.DB, error)
- func MysqlConnTest(host, port, user, password, dbname string) (bool, error)
- func MysqlDB() *gorm.DB
- func MysqlInit()
- func NotesDB() *gorm.DB
- func PgsqlConnTest(host, user, password, dbname string) (bool, error)
- func SetDBConn()
- func TestConnAliOSS(endPoint, accessKeyID, ossSecret, bucketName string) (bool, error)
- func TestConnTencentCOS(cos_url, secretid, secretkey string) (bool, error)
- type Caches
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CachesGetStr ¶
func CachesInit ¶
func CachesInit()
func CachesSetAlways ¶
func CachesSetAlways(key string, value interface{})
func CreateMysqlDB ¶
func CreatePgsqlDB ¶
Pgsql 连接并创建
func CreateSqliteDB ¶
func GetDBConns ¶
func MysqlConnTest ¶
func PgsqlConnTest ¶
Pgsql 测试连接
func TestConnAliOSS ¶
测试阿里云对象存储连接
func TestConnTencentCOS ¶
请求示例,使用永久密钥
Types ¶
Click to show internal directories.
Click to hide internal directories.