Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HeartbeatReceived = make(chan struct{}, 1)
Functions ¶
Types ¶
type CQServerResponse ¶
type GroupMessageIn ¶
type GroupMessageIn struct {
PostType string `json:"post_type"`
MessageType string `json:"message_type"`
Time int64 `json:"time"`
SelfID int `json:"self_id"`
SubType string `json:"sub_type"`
Anonymous interface{} `json:"anonymous"`
GroupID int `json:"group_id"`
Message string `json:"message"`
MessageID int64 `json:"message_id"`
Font int64 `json:"font"`
MessageSeq int64 `json:"message_seq"`
RawMessage string `json:"raw_message"`
UserID int `json:"user_id"`
Sender Sender `json:"sender"`
}
type GroupMessageOut ¶
type LoginInfoResponse ¶
type LoginInfoResponse struct {
Data struct {
Nickname string `json:"nickname"`
UserID int `json:"user_id"`
} `json:"data"`
}
func GetLoginInfo ¶
func GetLoginInfo() (*LoginInfoResponse, error)
type MessageBuilder ¶
type MessageBuilder struct {
// contains filtered or unexported fields
}
func (*MessageBuilder) AddPart ¶
func (mb *MessageBuilder) AddPart(part MessagePart)
func (*MessageBuilder) Build ¶
func (mb *MessageBuilder) Build() []map[string]interface{}
type MessagePart ¶
type MessagePart interface {
Build() map[string]interface{}
}
type Stat ¶
type Stat struct {
PacketReceived int `json:"packet_received"`
PacketSent int `json:"packet_sent"`
PacketLost int `json:"packet_lost"`
MessageReceived int `json:"message_received"`
MessageSent int `json:"message_sent"`
DisconnectTimes int `json:"disconnect_times"`
LostTimes int `json:"lost_times"`
LastMessageTime int `json:"last_message_time"`
}
Click to show internal directories.
Click to hide internal directories.