MCPcopy Create free account
hub / github.com/bcspragu/logseq-sync / userInfoResponse

Struct userInfoResponse

cmd/server/main.go:426–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424
425type userInfoRequest struct{}
426type 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
440func (s *server) serveUserInfo(w http.ResponseWriter, r *http.Request) {
441 if s.shouldProxy {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected