wdvxdr
69a187ddd7
Merge branch 'dev' into database-support
...
# Conflicts:
# main.go
2021-10-10 22:35:48 +08:00
wdvxdr
0b04ec9adb
feat(cache): implement Delete
2021-10-08 21:41:47 +08:00
wdvxdr
446f624a37
feat(http): accept onebot v12 style endpoint
...
disabled currently, enabled in v1.1.0
2021-10-06 16:13:40 +08:00
wdvxdr
cd5c6c6a72
clean: clean cache.Init
2021-10-05 22:20:24 +08:00
wdvxdr
41e33fdb3d
style: make linter happy
2021-10-03 22:34:08 +08:00
wdvxdr
63e950bb83
feat(internal/btree): use md5 key instead of sha1
...
image/video cache uses md5 key, this commit will reduce 4 used bytes in db
2021-10-03 22:32:11 +08:00
wdvxdr
4b99f64b56
style: move help resetWorkingDir to internal/base
2021-10-02 23:14:36 +08:00
wdvxdr
7c4be95c19
feat: store cache with disk btree backend
2021-09-28 22:23:33 +08:00
wdvxdr
4da6584f10
feat: unified writing/reading table
...
These changes table reading/writing to single read/write operation,
and layout to machine byteorder, so db file will be unsupported with
wrong byteorder.
2021-09-28 16:44:45 +08:00
wdvxdr
d620fce1ae
style: nolint on (*btree.Btree).insertTopLevel
2021-09-28 15:58:30 +08:00
wdvxdr
83b4206b15
fix: wrong sha1 cmp
...
reported by staticcheck.
2021-09-28 15:51:35 +08:00
wdvxdr
2927c2214f
feat: optimize btree reading/writing
2021-09-28 15:33:33 +08:00
wdvxdr
4625c785dd
fix: make linter happy in internal/btree
2021-09-28 10:48:19 +08:00
wdvxdr
f767213681
feat: init disk-based btree impl
2021-09-27 22:44:45 +08:00
wdvxdr
1337d3f1f3
style: move internal/config to modules/config
...
config should not be internal, maybe some module need it.
2021-09-26 19:41:03 +08:00
wdvxdr
ddd51e6ca3
style: move global/config to internal/config
2021-09-26 13:32:40 +08:00
wdvxdr
cf21e81016
style: move flag parse to internal/base
2021-09-25 21:09:50 +08:00
wdvxdr
5acb01c1a3
refactor: new package modules
...
move silk, mime to modules
2021-09-25 13:24:33 +08:00
wdvxdr
883fca089d
style: move global/update to internal/selfupdate
...
also move checkUpdate to internal/selfupdate
2021-09-25 10:58:54 +08:00
wdvxdr
110982651d
style: make linter happy
2021-09-25 00:17:36 +08:00
wdvxdr
2cf136d031
style: move flag variable into internal/base
2021-09-25 00:12:31 +08:00
wdvxdr
f2ed46d6ce
style: move coolq.Version into internal/base
2021-09-24 23:28:09 +08:00