wdvxdr
69a187ddd7
Merge branch 'dev' into database-support
...
# Conflicts:
# main.go
2021-10-10 22:35:48 +08:00
wdvxdr
560bd5a0cf
fix(coolq): fix btree cache for get_image
2021-10-10 11:21:44 +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
19fd331c46
rf(server): use sync.Once
2021-10-06 15:53:50 +08:00
wdvxdr
cd5c6c6a72
clean: clean cache.Init
2021-10-05 22:20:24 +08:00
Mrs4s
b8c7941dc8
Merge pull request #1085 from purerosefallen/patch-2
...
add `ffmpeg` into Dockerfile
2021-10-04 23:44:41 +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
ce944539c1
feat: split out server register
...
we can add server with less dependency
2021-10-02 23:42:47 +08:00
wdvxdr
4b99f64b56
style: move help resetWorkingDir to internal/base
2021-10-02 23:14:36 +08:00
wdvxdr
ce6b65ddb5
feat: read cache with disk btree backend
2021-09-29 21:40:25 +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
d464236573
fix: make linter happy
...
add db into skip-dirs
2021-09-28 15:46:14 +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
c4d34fa14f
Merge branch 'dev' into database-support
...
# Conflicts:
# coolq/bot.go
# modules/config/config.go
2021-09-26 19:49:48 +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
Mrs4s
c2166699e4
feat: multi database support - mongodb.
2021-09-26 19:11:07 +08:00
wdvxdr
ddd51e6ca3
style: move global/config to internal/config
2021-09-26 13:32:40 +08:00
wdvxdr
a691ee8115
Merge branch 'dev' into dev.db
...
# Conflicts:
# coolq/bot.go
2021-09-25 21:21:28 +08:00
wdvxdr
35b7b8909e
style: make linter happy
2021-09-25 21:13:26 +08:00
wdvxdr
cf21e81016
style: move flag parse to internal/base
2021-09-25 21:09:50 +08:00
wdvxdr
cd141d7d37
fix: build failed on nosilk platform
2021-09-25 13:28:23 +08:00
Nanahira
1a195278cf
add ffmpeg
into Dockerfile
2021-09-25 13:25:52 +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
wdvxdr
87754111ce
fix: make golangci-lint happy
2021-09-23 21:11:20 +08:00
wdvxdr
1db219fce0
feat: replace gout with net/http.
...
This significantly reduces binary size:
old 16.5MB
new 15.5MB
on windows/amd64
2021-09-23 21:03:46 +08:00
Mrs4s
5cafaea082
fix: token login error under special cases
2021-09-22 17:01:16 +08:00
Mrs4s
f629eee7f2
fix typo.
2021-09-22 16:48:59 +08:00
Mrs4s
a56e70d07c
feat: multi database support - multi db wrapper.
2021-09-22 16:43:27 +08:00
Mrs4s
28078d9c8e
fix typo.
2021-09-22 14:49:16 +08:00
Mrs4s
66266f0d5e
feat: multi database support - leveldb.
2021-09-22 14:43:48 +08:00
源文雨
60d5f4d386
feat: hide key in command line. ( #1076 )
...
* feat: hide key in command line.
* Update go.mod
* Update go.sum
* Update main.go
* Update go.mod
* Update go.sum
2021-09-19 23:14:38 +08:00
Mrs4s
efdd6bd16a
style: move coolq.MSG to global package
v1.0.0-beta7-fix2
2021-09-17 19:08:05 +08:00
wdvxdr
6d19f07eb4
fix: incorrect unsafe usage in upstream lib
...
Updates #1070
2021-09-17 15:37:09 +08:00
wdvxdr
760bb175c7
fix: incorrect del friend argument
...
Fixes #1070
2021-09-17 14:47:00 +08:00
Mrs4s
4da5d9ebfb
Merge pull request #1026 from Shigma/patch-3
...
enhance help
v1.0.0-beta7-fix1
2021-09-16 19:42:59 +08:00
Mrs4s
a6f82d85be
fix #1058
2021-09-16 19:37:05 +08:00
Mrs4s
c62f193005
Merge branch 'dev' of github.com:/Mrs4s/go-cqhttp into dev
v1.0.0-beta7
2021-09-16 18:27:58 +08:00
Mrs4s
f386a9b94e
doc: delete_unidirectional_friend
2021-09-16 18:27:42 +08:00
Mrs4s
48afb44287
Merge pull request #1050 from wdvxdr1123/avx2
...
feat: use avx2 base64
2021-09-16 18:24:44 +08:00