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

client: add json tag to statistics

This commit is contained in:
wdvxdr 2022-02-22 13:25:16 +08:00
parent 6b5e7d35f0
commit 421755d938
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6

View File

@ -5,14 +5,14 @@ import (
)
type Statistics struct {
PacketReceived atomic.Uint64
PacketSent atomic.Uint64
PacketLost atomic.Uint64
MessageReceived atomic.Uint64
MessageSent atomic.Uint64
LastMessageTime atomic.Int64
DisconnectTimes atomic.Uint32
LostTimes atomic.Uint32
PacketReceived atomic.Uint64 `json:"packet_received"`
PacketSent atomic.Uint64 `json:"packet_sent"`
PacketLost atomic.Uint64 `json:"packet_lost"`
MessageReceived atomic.Uint64 `json:"message_received"`
MessageSent atomic.Uint64 `json:"message_sent"`
LastMessageTime atomic.Int64 `json:"last_message_time"`
DisconnectTimes atomic.Uint32 `json:"disconnect_times"`
LostTimes atomic.Uint32 `json:"lost_times"`
}
func (c *QQClient) GetStatistics() *Statistics {