Mrs4s
d4c2b62e5e
fix: import cycle
2022-02-24 01:15:42 +08:00
Mrs4s
0f06688ac6
Merge branch 'master' into dev
2022-02-24 01:12:16 +08:00
Mrs4s
dfcad8082b
feat: check reset working dir exists
2022-02-24 01:11:27 +08:00
wdvxdr
c7f0aed1b7
coolq: adapt new MiraiGo upload api
2022-02-21 23:44:49 +08:00
github-actions[bot]
b833193926
ci(chore): Fix stylings
2022-02-20 15:37:25 +00:00
wdvxdr
31cdd33767
internal/btree: remove lock file after testing
2022-02-19 20:19:17 +08:00
github-actions[bot]
ee749a45fc
ci(chore): Fix stylings
2022-02-19 10:56:44 +00:00
wdvxdr
e6904d8dde
internal/btree: implement file lock
...
For #1366
2022-02-19 18:55:28 +08:00
wdvxdr
2a66896d43
coolq: new package cqcode
...
move cqcode escape&unescape to new package
2022-02-16 01:14:35 +08:00
wdvxdr
c609fd72f5
dep: update deps & drop github.com/klauspost/compress
2022-02-13 17:28:08 +08:00
wdvxdr
82b0c69b1b
config: remove old env config
...
Fixes #1219
2022-02-06 22:19:30 +08:00
wdvxdr
f88f51ceed
cmd/gocq: switch faststart
over to a flag
2022-02-06 16:04:03 +08:00
wdvxdr
1f55bde728
ci: make lint happy
2022-01-30 16:00:30 +08:00
wdvxdr
e8bf497022
fix: fix btree iterate for empty db
2022-01-30 15:50:02 +08:00
wdvxdr
6c7445772c
fix: fix btree iterate
2022-01-30 15:35:14 +08:00
wdvxdr
d2a58014bc
feat: support foreach in btree
2022-01-30 14:52:29 +08:00
Mrs4s
a5dd0bfa1f
feat: disable temp session by default
2022-01-24 19:52:13 +08:00
wdvxdr
b98f75ccab
style: run gofumpt
2021-12-29 14:04:51 +08:00
wdvxdr
59bc7b4bae
internal/cache: always use CacheDB
...
Updates #1075
2021-12-28 17:33:14 +08:00
wdvxdr
bb7f83201e
feat(http): enable v12 style http endpoint
2021-11-17 22:11:15 +08:00
Akiba
77580ae8ef
feat(log): add switch for colorful logging
2021-11-15 02:04:04 +08:00
Mrs4s
8eecba72e2
log: tencent cloud dns warning
2021-11-14 16:44:25 +08:00
wdvxdr
4e69ef4c2f
Merge branch 'database-support' into dev
...
# Conflicts:
# go.mod
# go.sum
# main.go
2021-10-17 16:03:37 +08:00
wdvxdr
ef095ec64e
dep: use github.com/klauspost/compress
2021-10-16 22:18:33 +08:00
Mrs4s
47391e0a06
add: package comment
2021-10-16 16:48:56 +08:00
Mrs4s
952f7ab5fb
fix typo.
2021-10-16 16:47:07 +08:00
Mrs4s
5fbb427615
feat: network diagnosis.
2021-10-16 16:44:48 +08:00
wdvxdr
029d3a2c18
feat: onebot 12 style mention [disabled]
2021-10-13 22:50:35 +08:00
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