Documentation ¶
Index ¶
Constants ¶
View Source
const ( ActUpdate = "update" ActInsert = "insert" ActDelete = "delete" )
View Source
const ( TypeForView = "view" TypeForDm = "dm" TypeForReply = "reply" TypeForFav = "fav" TypeForCoin = "coin" TypeForRank = "rank" TypeForLike = "like" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LikeMsg ¶
type LikeMsg struct { BusinessID int64 `json:"business_id"` MessageID int64 `json:"message_id"` LikesCount int64 `json:"likes_count"` DislikesCount int64 `json:"dislikes_count"` }
LikeMsg msg
type Message ¶
type Message struct { Action string `json:"action"` Table string `json:"table"` New json.RawMessage `json:"new"` Old json.RawMessage `json:"old"` }
Message canal binlog message.
type StatMsg ¶
type StatMsg struct { Aid int64 `json:"aid"` Click int `json:"click"` DM int `json:"dm"` Reply int `json:"reply"` Fav int `json:"fav"` Coin int `json:"coin"` NowRank int `json:"now_rank"` HisRank int `json:"his_rank"` Like int `json:"like"` DisLike int `json:"dislike_count"` Type string `json:"-"` Ts int64 `json:"-"` }
StatMsg stat info.
Click to show internal directories.
Click to hide internal directories.