Documentation ¶
Index ¶
Constants ¶
View Source
const (
// SchemaProxy SchemaProxy
SchemaProxy = "proxy"
)
Variables ¶
Functions ¶
Types ¶
type LoginByLoginOrPlatform ¶
type LoginByLoginOrPlatform struct { // Login server UID string `json:"UID"` // user ID DBToken string `json:"DBToken"` // user token // Platform server PID string `json:"PID"` // Platform ID Info *string `json:"Info"` // login info Token string `json:"Token"` // Token=sha256(TimestampMicro+PID+Platform+Info+verifySecretkey) Platform string `json:"Platform"` // Platform name TimestampMicro int64 `json:"TimestampMicro"` // timestamp }
LoginByLoginOrPlatform The user will log in using Login or Platform authentication information, and will return LoginRequ2ws if successful
type LoginRequ2ws ¶
type LoginRequ2ws struct { UID string `json:"UID"` // user ID, In WATCH mode this is the ID of the watch DBToken string `json:"DBToken"` // Login with DBToken Info string `json:"Info"` // login info Token string `json:"Token"` // Token=sha256(TimestampMicro+UID+DBToken+Info+verifySecretkey) TimestampMicro int64 `json:"TimestampMicro"` // timestamp Keeps []string `json:"Keeps"` // some connects that was kept }
LoginRequ2ws This json is transparently passed to the gateway. So you can design an authentication server not associated with the gateway.
type Platform ¶
type Platform struct { PID string `json:"PID"` // Platform ID Info *string `json:"Info"` // login info Token string `json:"Token"` // Token=sha256(TimestampMicro+PID+Platform+Info+verifySecretkey) Platform string `json:"Platform"` // Platform name TimestampMicro int64 `json:"TimestampMicro"` // timestamp }
Platform This json is generated by the platform authentication server and passed to the login server for login
Click to show internal directories.
Click to hide internal directories.