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

23 Commits

Author SHA1 Message Date
风之凌殇
c51e1956e8
feat: add util function to split long message (#184)
* feat: add util function to split long message

* fix: move util to message/message.go to avoid import cycle

* fix: review opinions and add test
2021-12-23 12:57:18 +08:00
wdvxdr
d2dc2e472d
client: pack packet by transport 2021-12-22 22:47:00 +08:00
wdvxdr
6b5ba9f9c4
refactor: move c.nextSeq to c.uniPacket 2021-12-17 23:50:30 +08:00
wdvxdr
1c29ac7d96
refactor: packets.BuildUniPacket -> c.uniPacket
mostly auto-generated by

```
rf '
ex {
    var c QQClient
    var seq uint16
    var payload []byte
    var command string
    BuildUniPacket(c.Uin, seq, command, 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) -> c.uniPacket(seq, command, payload)
}
'
```
2021-12-17 22:58:41 +08:00
wdvxdr
cf49727531
fix: use go.uber.org/atomic to force atomic 2021-12-17 21:01:10 +08:00
wdvxdr
8b99d3147e
style: fix issues reported by golangci-lint 2021-12-16 20:21:49 +08:00
wdvxdr
ec4cd4a6f3
style: internal/proto
use this package for conveniently replacing proto package
in the future.
2021-11-22 22:05:19 +08:00
wdvxdr
7b125259d6
style: sort imports 2021-11-12 23:43:22 +08:00
github-actions[bot]
89b2d4e2ba ci(chore): Fix stylings 2021-11-01 18:45:12 +00:00
Mrs4s
2350d04f0f
style: rename package protocol to internal 2021-11-02 02:44:20 +08:00
Mrs4s
36d7eea2dd
move network logic to network.go. 2021-07-18 20:10:44 +08:00
wdvxdr
4128ec65a0
fix(client): don't fragment reply message. 2021-07-14 21:41:18 +08:00
wdvxdr
5b20b58d78
rf(message): simply send message. 2021-07-14 21:29:12 +08:00
wdvxdr
2d79fccd10
fix stat data race. 2021-07-11 23:04:19 +08:00
wdvxdr
4aa87a8ab8
dep: remove github.com/golang/protobuf 2021-06-11 14:23:46 +08:00
wdvxdr
f145000ac0
fix: private message seq 2021-05-18 15:00:25 +08:00
wdvxdr
2e64a6913d
zap: reuse some []byte
优化单线程上传内存使用
2021-04-15 21:36:14 +08:00
github-actions
5ec6c651b7 ci(chore): Fix stylings 2021-04-06 09:31:40 +00:00
Mrs4s
5faec8678d feat: more temp session source support & consulting source message sending. close #142 2021-04-06 17:30:51 +08:00
Mrs4s
27fb6bc1b5 add: PrivateMessage & TempMessage self field. 2021-03-28 16:18:41 +08:00
Mrs4s
5a4b421850 feat: self private msg event. 2021-03-16 18:34:47 +08:00
github-actions
65ab1304e6 ci(chore): Fix stylings 2021-02-14 03:06:03 +00:00
Mrs4s
d0b2634029 save progress. 2021-01-24 02:20:02 +08:00