package
0.0.0-20191129085907-f1b58f724f7f
Repository: https://github.com/golib2020/frame.git
Documentation: pkg.go.dev
# README
配置文件模版 config.json
{
"db": {
"default": {
"driver": "<mysql | xorm所支持的数据库类型>",
"dsn": "<user>:<password>@(<host>:<port>)/<dbname>?charset=utf8mb4",
"max": {
"open": 10,
"idle": 2,
"life": "60s"
}
}
},
"redis": {
"default": {
"driver": "radix",
"addr": "<host>:6379",
"pass": "",
"db": 0,
"size": 10
}
},
"storage": {
"default": {
"driver": "local",
"root": "/storage/",
"host": "/"
},
"aliyun": {
"driver": "oss",
"root": "< / | 根路径>",
"host": "<访问域名的 如:https://domain/ >",
"secret_id": "<secret_id>",
"secret_key": "<secret_key>",
"endpoint": "<endpoint>",
"bucket_name": "<bucket_name>"
},
"tencent": {
"driver": "cos",
"root": "< / | 根路径>",
"host": "<访问域名的>",
"secret_id": "<secret_id>",
"secret_key": "<secret_key>",
"region": "<region>",
"bucket_name": "<bucket_name>"
}
},
"email": {
"default": {
"addr": "<host>:465",
"user": "<user email>",
"pass": "<password>",
"name": "<发送人的名字>"
}
},
"cache": {
"default": {
"driver": "redis",
"prefix": "<prefix>"
},
"local": {
"driver": "local",
"prefix": "<prefix>",
"root": "./"
}
}
}
# Functions
Cache 缓存.
Config 配置.
Corn 定时任务.
No description provided by the author
Email 邮件服务.
No description provided by the author
Mysql mysql实例.
No description provided by the author
Queue 队列 | 腾讯云CMQ + 云函数.
Redis redis实例.
Storage 持久存储.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author