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:
parent
6b5e7d35f0
commit
421755d938
@ -5,14 +5,14 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Statistics struct {
|
type Statistics struct {
|
||||||
PacketReceived atomic.Uint64
|
PacketReceived atomic.Uint64 `json:"packet_received"`
|
||||||
PacketSent atomic.Uint64
|
PacketSent atomic.Uint64 `json:"packet_sent"`
|
||||||
PacketLost atomic.Uint64
|
PacketLost atomic.Uint64 `json:"packet_lost"`
|
||||||
MessageReceived atomic.Uint64
|
MessageReceived atomic.Uint64 `json:"message_received"`
|
||||||
MessageSent atomic.Uint64
|
MessageSent atomic.Uint64 `json:"message_sent"`
|
||||||
LastMessageTime atomic.Int64
|
LastMessageTime atomic.Int64 `json:"last_message_time"`
|
||||||
DisconnectTimes atomic.Uint32
|
DisconnectTimes atomic.Uint32 `json:"disconnect_times"`
|
||||||
LostTimes atomic.Uint32
|
LostTimes atomic.Uint32 `json:"lost_times"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *QQClient) GetStatistics() *Statistics {
|
func (c *QQClient) GetStatistics() *Statistics {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user