1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 11:07:39 +08:00

93 Commits

Author SHA1 Message Date
源文雨
fd6ef4a2b8 optimize(qisgn): async operations
FYI: @1umine
2023-08-28 16:56:19 +08:00
Lumine
f8354ec082
修复TCP缓冲区不足问题;重构 qsign 签名服务对接部分;支持配置多个签名服务器 (#2389)
* fix: skip callback error

* update: update comment

* change the logic of callback and auto-register

* add token update prompt.

* fix log buffer string

* fix #2368

增加对 client 的利用,避免创建过多 clients

* refactor: wrap sign request

* feat: impl additional sign servers configuration

* fix error in using configurations.

* fix lint error

* 支持切换回主签名服务器

* feat: support different key and auth

* optimize: find avaliable sign-server

* fix: register instance after server is changed

* fix lint error

* update: add config 'sync-check-servers'

* update: first check master sign-server, or wait 3s

* add checking log & optimize wait for checking done

* fix wrong judge

* add config: rule for changing sign server

* optimize registration logic after changing server

* add some log

* fix #2390

* resolve requested changes in #2389

* update dependency

* fix lint error 'idx is unused'

* refactor: extract sync check and async check logic

* delete async check sign-server
2023-08-27 13:19:38 +08:00
Komei_DiSanXian
da9f03fa47
fix #2368, which causes system lacked sufficient buffer space (#2372)
* fix #2368

* add CloseIdleConnections at WriteToFileMultiThreading
2023-08-23 12:59:53 +08:00
Bluefissure
88f5db89a8
feat: add Bearer authentication to sign server requests (#2247)
* feat: add sign-server-bearer

* fix: golint

* fix: golint

* fix: remove trimprefix

---------

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 11:15:31 +08:00
源文雨
7c813f8579 feat: add config sign-server-timeout 2023-08-01 11:09:04 +08:00
SuperKenVery
7adbbd6f81
增加签名服务器请求超时时间 (#2302)
* Increase timeout in download

* 直接改一分钟好了

---------

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 10:48:14 +08:00
achieve
aa3a5d28da
optimize: increase http client timeout (#2315) 2023-08-01 08:51:58 +08:00
KomeiDiSanXian
6cf8030d3c update: 兼容签名服务器到v1.1.3 2023-07-10 07:15:43 +08:00
Mrs4s
9c1390c75c
feat: support sign server 2023-06-27 18:11:06 +08:00
wdvxdr
42606a825d internal/download: disable http when not visiting go-cqhttp.org 2023-04-09 17:51:32 +08:00
wdvxdr
1ed675d5bf internal/t544: add //go:noescape 2023-04-09 17:37:12 +08:00
源文雨
91b4394d9b
optimize(t544): drop unsafe (#2076)
Updates #2075 #2072 #2051
2023-04-09 17:25:57 +08:00
Mrs4s
0b90074a48
feat: http timeout setting 2023-04-08 17:08:53 +08:00
源文雨
54995fc101 fix: 尝试修复 #2070 (#2071) 2023-04-08 12:11:20 +08:00
wdvxdr
13325634c0 make lint happy 2023-04-08 11:34:19 +08:00
Mrs4s
7b2d1fd573
rf: remove sse2 check 2023-04-05 01:35:05 +08:00
Mrs4s
0f0e711111
fix comment 2023-04-02 18:09:37 +08:00
Mrs4s
233e276d6a
feat: t544 support 8.9.38.10545 2023-04-02 18:06:25 +08:00
Mrs4s
1ab1cba84c
rf: change protocol auto-update to manual update 2023-04-02 18:04:13 +08:00
Mrs4s
c486c254d8
rf: move gocq/encryption -> internal/encryption 2023-04-01 22:29:20 +08:00
Mrs4s
d70d66d6d7
fix #2010 2023-03-27 09:51:47 +08:00
Mrs4s
174d99f94b
fix: add timeout setting for default http client 2023-03-18 10:35:19 +08:00
Mrs4s
4ad7da7a9a
feat: add sign-server flag 2023-03-18 10:27:48 +08:00
Mrs4s
278d6260c8
feat: implement t544 energy 2023-03-05 19:36:50 +08:00
wdvxdr
4ceacc38d5 onebot: move to pkg/onebot 2023-02-27 15:17:27 +08:00
wdvxdr
debc1ed1ae coolq: unified string/array message conversion
change to 2 step:
(1): parse to []internal/msg.Element, use msg.ParseObject/msg.ParseString
(2): transform to []IMessageElement, can share functions
2023-02-16 14:51:23 +08:00
wdvxdr
43dd9aa76d rf: move coolq/cqcode to internal/msg 2023-02-15 22:29:42 +08:00
wdvxdr
9c0525b3d4 all: use *onebot.Spec 2023-02-15 21:49:05 +08:00
wdvxdr
cf717ad762 internal/onebot: new package 2023-02-15 14:24:57 +08:00
wdvxdr
20c62111f5 all: run gofmt -w -r 'interface{} -> any' 2023-01-26 23:03:08 +08:00
Mrs4s
4d064e145f
fix #1864 2023-01-19 23:26:54 +08:00
Maiko Tan
2a4ea28f4d
feat: add webp image convert function 2023-01-05 21:58:37 +08:00
wdvxdr
de44adbfa1
internal/base: use relative path in flag -c default value 2022-11-03 20:55:01 +08:00
wdvxdr
db64699f3c
all: use os.Chdir instead of fork a process when changing working directory 2022-11-03 20:47:43 +08:00
wdvxdr
997cdceb7a internal/download: add comments
make lint happy!
2022-10-13 21:34:08 +08:00
wdvxdr
f4117bfb70 internal/download: move download logic to this package
also disable http2 when downloading, may fix some issue

For #1563
2022-10-13 21:27:36 +08:00
Madray Haven
532f55fba0 fix: More compatible behavior for getting the current executable dir 2022-09-11 19:58:36 +08:00
wdvxdr
093605cf01 internal/btree: remove
Goodbye!
2022-08-31 21:11:23 +08:00
wdvxdr
2f92146092 cache: switch to leveldb 2022-08-31 21:07:18 +08:00
wdvxdr
96e6397636 btree: remove resethash 2022-08-31 20:30:16 +08:00
wdvxdr
1ff5e4de12 rf: remove Base64DecodeString
Now segmentio/asm resolve issue 50, we don't need this wrapper.
2022-08-31 17:24:22 +08:00
wdvxdr
98712bf9ca move mime to internal package 2022-08-31 16:31:47 +08:00
wdvxdr
d522378315
all: optimize
detected by go-perfguard
2022-03-27 23:01:47 +08:00
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