| 424 | |
| 425 | type userInfoRequest struct{} |
| 426 | type userInfoResponse struct { |
| 427 | ExpireTime int64 `json:"ExpireTime"` |
| 428 | UserGroups []string `json:"UserGroups"` |
| 429 | ProUser bool `json:"ProUser"` |
| 430 | StorageLimit int64 `json:"StorageLimit"` |
| 431 | GraphCountLimit int64 `json:"GraphCountLimit"` |
| 432 | |
| 433 | // XXX: I don't actually know what the types of these fields are, just that they |
| 434 | // were `null`. This may cause deserialization failures for some accounts. |
| 435 | LemonRenewsAt *int64 `json:"LemonRenewsAt"` |
| 436 | LemonEndsAt *int64 `json:"LemonEndsAt"` |
| 437 | LemonStatus *string `json:"LemonStatus"` |
| 438 | } |
| 439 | |
| 440 | func (s *server) serveUserInfo(w http.ResponseWriter, r *http.Request) { |
| 441 | if s.shouldProxy { |
nothing calls this directly
no outgoing calls
no test coverage detected