配置文件:
version: aliyunpan/v1beta
ali-drive:
refresh-token: 123
drive-id: 1234
root-path: 录播同步
chunk-size: 10485760
以BililiveRecorder为例,在配置文件中添加:
{
"global": {
"WebHookUrlsV2": {
"HasValue": true,
"Value": "http://bilibili-notifier:10305/notifier/bilibili"
}
}
}
go build -o docker/bin/notifier ./cmd/notifier
- ali-drive: 支持文件分块上传、哈希检测和查看的阿里云盘客户端
- ali-notifier: 提供Webhook和与BililiveRecorder适配的Webhook
- 调用后自动上传和清理本地存储
- 基于sqlite3事务实现持久化和可靠事件处理
- 基于Sha1 Hash检查保证上传数据可靠性
- suppress: 实验性的Golang错误处理方案,方案讨论见个人博客
- Dispatcher、Database: mock-based testing
- Dispatcher、IO: fuzzing
MIT License