Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 行为类型 BehaviorTypes = struct { // 上线 Online int // 下线 Offline int }{ Online: 0, Offline: 1, } // 用户类型 UserTypes = struct { // 0 - 认证用户 UserAuthed int // 2 - 游客 Guest int }{ UserAuthed: 0, Guest: 2, } )
Functions ¶
Types ¶
type LoginOutEvent ¶
type LoginOutEvent struct { Num int `json:"no"` SessionID string `json:"si"` BehaviorType int `json:"bt"` Timestamp int64 `json:"ot"` UserType int `json:"ct"` DeviceID string `json:"di"` PlayerID string `json:"pi"` }
func NewLoginEvent ¶ added in v0.1.2
func NewLogoutEvent ¶ added in v0.1.2
type LoginOutRequest ¶
type LoginOutRequest struct {
Collections []LoginOutEvent `json:"collections"`
}
func DecodeLoginOutRequest ¶ added in v0.1.3
func DecodeLoginOutRequest(msgList [][]byte, batchSize int) ([]*LoginOutRequest, error)
func (*LoginOutRequest) Do ¶
func (req *LoginOutRequest) Do(c *auth.Client, _url ...string) (*LoginOutResponse, error)
func (*LoginOutRequest) DoTestSuite ¶
func (req *LoginOutRequest) DoTestSuite(c *auth.Client, testCode string) (*LoginOutResponse, error)
type LoginOutResponse ¶
type LoginOutResponse struct { ErrCode int `json:"errcode"` ErrMsg string `json:"errmsg"` Data struct { Results []LoginOutResult `json:"results"` } `json:"data"` }
func (*LoginOutResponse) CanRetry ¶ added in v0.1.3
func (lor *LoginOutResponse) CanRetry() bool
func (*LoginOutResponse) IsOK ¶ added in v0.1.3
func (lor *LoginOutResponse) IsOK() bool
type LoginOutResult ¶
Click to show internal directories.
Click to hide internal directories.