1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-07-13 00:43:48 +00:00
Files
MiraiGo/client/statistics.go
2021-01-20 21:12:07 +08:00

21 lines
522 B
Go

package client
import "sync"
type Statistics struct {
PacketReceived uint64 `json:"packet_received"`
PacketSent uint64 `json:"packet_sent"`
PacketLost uint32 `json:"packet_lost"`
MessageReceived uint64 `json:"message_received"`
MessageSent uint64 `json:"message_sent"`
DisconnectTimes uint32 `json:"disconnect_times"`
LostTimes uint32 `json:"lost_times"`
LastMessageTime int64 `json:"last_message_time"`
once sync.Once
}
func (c *QQClient) GetStatistics() *Statistics {
return c.stat
}