1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-08-07 18:41:49 +00:00

31 Commits

Author SHA1 Message Date
fd6ef4a2b8 optimize(qisgn): async operations
FYI: @1umine
2023-08-28 16:56:19 +08:00
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
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
6cf8030d3c update: 兼容签名服务器到v1.1.3 2023-07-10 07:15:43 +08:00
9c1390c75c feat: support sign server 2023-06-27 18:11:06 +08:00
0b90074a48 feat: http timeout setting 2023-04-08 17:08:53 +08:00
1ab1cba84c rf: change protocol auto-update to manual update 2023-04-02 18:04:13 +08:00
4ad7da7a9a feat: add sign-server flag 2023-03-18 10:27:48 +08:00
2a4ea28f4d feat: add webp image convert function 2023-01-05 21:58:37 +08:00
de44adbfa1 internal/base: use relative path in flag -c default value 2022-11-03 20:55:01 +08:00
db64699f3c all: use os.Chdir instead of fork a process when changing working directory 2022-11-03 20:47:43 +08:00
532f55fba0 fix: More compatible behavior for getting the current executable dir 2022-09-11 19:58:36 +08:00
98712bf9ca move mime to internal package 2022-08-31 16:31:47 +08:00
d4c2b62e5e fix: import cycle 2022-02-24 01:15:42 +08:00
dfcad8082b feat: check reset working dir exists 2022-02-24 01:11:27 +08:00
f88f51ceed cmd/gocq: switch faststart over to a flag 2022-02-06 16:04:03 +08:00
a5dd0bfa1f feat: disable temp session by default 2022-01-24 19:52:13 +08:00
bb7f83201e feat(http): enable v12 style http endpoint 2021-11-17 22:11:15 +08:00
77580ae8ef feat(log): add switch for colorful logging 2021-11-15 02:04:04 +08:00
029d3a2c18 feat: onebot 12 style mention [disabled] 2021-10-13 22:50:35 +08:00
446f624a37 feat(http): accept onebot v12 style endpoint
disabled currently, enabled in v1.1.0
2021-10-06 16:13:40 +08:00
4b99f64b56 style: move help resetWorkingDir to internal/base 2021-10-02 23:14:36 +08:00
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
ddd51e6ca3 style: move global/config to internal/config 2021-09-26 13:32:40 +08:00
cf21e81016 style: move flag parse to internal/base 2021-09-25 21:09:50 +08:00
5acb01c1a3 refactor: new package modules
move silk, mime to modules
2021-09-25 13:24:33 +08:00
883fca089d style: move global/update to internal/selfupdate
also move checkUpdate to internal/selfupdate
2021-09-25 10:58:54 +08:00
110982651d style: make linter happy 2021-09-25 00:17:36 +08:00
2cf136d031 style: move flag variable into internal/base 2021-09-25 00:12:31 +08:00
f2ed46d6ce style: move coolq.Version into internal/base 2021-09-24 23:28:09 +08:00