Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeviceID ¶
GetDeviceID returns the current machine's device ID
Types ¶
type ClientType ¶
type ClientType struct { ID string `json:"id"` Platform string `json:"platform"` AppVersion string `json:"app_version"` AppChannel string `json:"app_channel"` }
ClientType is collect payload's client field type
var Client ClientType
Client is current user's client info
type Event ¶
type Event struct {
Event string `json:"event"`
}
Event is collect payload's evnets field type
type Payload ¶
type Payload struct { Client ClientType `json:"client"` Events []Event `json:"events"` Session SessionType `json:"session"` }
Payload is leancloud statics collect's playload
type SessionType ¶
type SessionType struct {
ID string `json:"id"`
}
SessionType is collect payload's session filed type
Click to show internal directories.
Click to hide internal directories.