Versions in this module Expand all Collapse all v1 v1.0.1 Nov 7, 2022 Changes in this version + func IsValidToken(secret []byte, token []byte, data []byte) bool + func Sign(secret []byte, data []byte) string + func VerifyTokenHeader(secret []byte, data []byte, tokenFromHeader string) bool + type AccountRelation struct + AdvertiserIDs []uint64 + AgentIDs map[string][]uint64 + Ccids map[string][]uint64 + CoreUserIDs map[string][]uint64 + type BaseResponse struct + StatusCode int + StatusMessage string + type ChallengeRequest struct + Challenge int64 + Event string + type ChallengeResponse struct + BaseResp BaseResponse + Challenge int64 + type CommentUser struct + AvatarURL string + NickName string + OpenID string + type EventContent struct + AdIDs []uint64 + AdvID uint64 + CampaignType enum.CampaignType + CommentContent string + CommentItemOwnerID string + CommentUser *CommentUser + CreateTime int64 + Description string + EventType int + Extra string + From json.RawMessage + GroupIDs []uint64 + IconURL string + IsReply bool + LinkURL string + Message string + MessageType string + Object string + PromotionIDs []uint64 + ReplyToCommentContent string + ReplyToCommentID string + ReplyToCommentUser *CommentUser + ResourceHeight int + ResourceType string + ResourceURL string + ResourceWidth int + SiteID uint64 + SumQuota int64 + SumQuotaBefore int64 + Text string + Title string + To json.RawMessage + type Message struct + AccountRelation string + AdvertiserIDs []uint64 + Data string + MessageID string + Nonce int64 + PublishTime int64 + ServiceLabel string + SubscribeTaskID uint64 + Timestamp int64 + type MessageData struct + Content *EventContent + type MessageDataBase struct + AdID uint64 + AdIDs []uint64 + AdvertiserID uint64 + AppID uint64 + CoreUserID uint64 + CoreUserIDs []uint64 + CreativeIDs []uint64 + Event string + FromUserID string + ToUserID string + UserID uint64 + type MessageDataV2 struct + Content string