1
0
mirror of https://github.com/badkaktus/gorocket.git synced 2025-07-17 01:22:21 +02:00

update struct

This commit is contained in:
badkaktus
2022-09-01 16:22:58 +03:00
parent bfdd7508ae
commit 46b549f256
4 changed files with 128 additions and 128 deletions

View File

@ -15,21 +15,21 @@ type LoginPayload struct {
} }
type LoginResponse struct { type LoginResponse struct {
Status string `json:"status"` Status string `json:"status"`
Data data `json:"data"` Data DataLogin `json:"data"`
Message string `json:"message,omitempty"` Message string `json:"message,omitempty"`
} }
type data struct { type DataLogin struct {
UserID string `json:"userId"` UserID string `json:"userId"`
AuthToken string `json:"authToken"` AuthToken string `json:"authToken"`
Me me `json:"me"` Me Me `json:"me"`
} }
type me struct { type Me struct {
ID string `json:"_id"` ID string `json:"_id"`
Services services `json:"services"` Services Services `json:"services"`
Emails []email `json:"emails"` Emails []Email `json:"emails"`
Status string `json:"status"` Status string `json:"status"`
Active bool `json:"active"` Active bool `json:"active"`
UpdatedAt time.Time `json:"_updatedAt"` UpdatedAt time.Time `json:"_updatedAt"`
@ -39,7 +39,7 @@ type me struct {
Username string `json:"username"` Username string `json:"username"`
UtcOffset int `json:"utcOffset"` UtcOffset int `json:"utcOffset"`
StatusText string `json:"statusText"` StatusText string `json:"statusText"`
Settings settings `json:"settings"` Settings Settings `json:"settings"`
AvatarOrigin string `json:"avatarOrigin"` AvatarOrigin string `json:"avatarOrigin"`
RequirePasswordChange bool `json:"requirePasswordChange"` RequirePasswordChange bool `json:"requirePasswordChange"`
Language string `json:"language"` Language string `json:"language"`
@ -47,29 +47,29 @@ type me struct {
AvatarURL string `json:"avatarUrl"` AvatarURL string `json:"avatarUrl"`
} }
type services struct { type Services struct {
Password password `json:"password"` Password Password `json:"password"`
} }
type password struct { type Password struct {
Bcrypt string `json:"bcrypt"` Bcrypt string `json:"bcrypt"`
} }
type email struct { type Email struct {
Address string `json:"address"` Address string `json:"address"`
Verified bool `json:"verified"` Verified bool `json:"verified"`
} }
type settings struct { type Settings struct {
Preferences preferences `json:"preferences"` Preferences Preferences `json:"preferences"`
} }
type dontAskAgainList struct { type DontAskAgainList struct {
Action string `json:"action"` Action string `json:"action"`
Label string `json:"label"` Label string `json:"label"`
} }
type preferences struct { type Preferences struct {
EnableAutoAway bool `json:"enableAutoAway"` EnableAutoAway bool `json:"enableAutoAway"`
IdleTimeLimit int `json:"idleTimeLimit"` IdleTimeLimit int `json:"idleTimeLimit"`
AudioNotifications string `json:"audioNotifications"` AudioNotifications string `json:"audioNotifications"`
@ -101,7 +101,7 @@ type preferences struct {
DesktopNotificationRequireInteraction bool `json:"desktopNotificationRequireInteraction"` DesktopNotificationRequireInteraction bool `json:"desktopNotificationRequireInteraction"`
SidebarSortby string `json:"sidebarSortby"` SidebarSortby string `json:"sidebarSortby"`
DesktopNotificationDuration int `json:"desktopNotificationDuration"` DesktopNotificationDuration int `json:"desktopNotificationDuration"`
DontAskAgainList []dontAskAgainList `json:"dontAskAgainList"` DontAskAgainList []DontAskAgainList `json:"dontAskAgainList"`
Highlights []interface{} `json:"highlights"` Highlights []interface{} `json:"highlights"`
Language string `json:"language"` Language string `json:"language"`
} }
@ -115,8 +115,8 @@ type LogoutResponse struct {
type MeResponse struct { type MeResponse struct {
ID string `json:"_id"` ID string `json:"_id"`
Services services `json:"services"` Services Services `json:"services"`
Emails []email `json:"emails"` Emails []Email `json:"emails"`
Status string `json:"status"` Status string `json:"status"`
Active bool `json:"active"` Active bool `json:"active"`
UpdatedAt time.Time `json:"_updatedAt"` UpdatedAt time.Time `json:"_updatedAt"`
@ -126,7 +126,7 @@ type MeResponse struct {
Username string `json:"username"` Username string `json:"username"`
UtcOffset int `json:"utcOffset"` UtcOffset int `json:"utcOffset"`
StatusText string `json:"statusText"` StatusText string `json:"statusText"`
Settings settings `json:"settings"` Settings Settings `json:"settings"`
AvatarOrigin string `json:"avatarOrigin"` AvatarOrigin string `json:"avatarOrigin"`
RequirePasswordChange bool `json:"requirePasswordChange"` RequirePasswordChange bool `json:"requirePasswordChange"`
Language string `json:"language"` Language string `json:"language"`

View File

@ -14,17 +14,17 @@ type AddAllRequest struct {
} }
type AddAllResponse struct { type AddAllResponse struct {
Channel channel `json:"channel"` Channel Channel `json:"channel"`
Success bool `json:"success"` Success bool `json:"success"`
} }
type channel struct { type Channel struct {
ID string `json:"_id"` ID string `json:"_id"`
Name string `json:"name"` Name string `json:"name"`
T string `json:"t"` T string `json:"t"`
Usernames []string `json:"usernames"` Usernames []string `json:"usernames"`
Msgs int `json:"msgs"` Msgs int `json:"msgs"`
U u `json:"u"` U U `json:"u"`
Ts time.Time `json:"ts"` Ts time.Time `json:"ts"`
} }
@ -56,7 +56,7 @@ type CreateChannelRequest struct {
} }
type CreateChannelResponse struct { type CreateChannelResponse struct {
Channel channel `json:"channel"` Channel Channel `json:"channel"`
Success bool `json:"success"` Success bool `json:"success"`
} }
@ -76,18 +76,18 @@ type ChannelHistoryRequest struct {
} }
type ChannelInfoResponse struct { type ChannelInfoResponse struct {
Channel channelInfo `json:"channel"` Channel ChannelInfo `json:"channel"`
Success bool `json:"success"` Success bool `json:"success"`
} }
type channelInfo struct { type ChannelInfo struct {
ID string `json:"_id"` ID string `json:"_id"`
Name string `json:"name"` Name string `json:"name"`
Fname string `json:"fname"` Fname string `json:"fname"`
T string `json:"t"` T string `json:"t"`
Msgs int `json:"msgs"` Msgs int `json:"msgs"`
UsersCount int `json:"usersCount"` UsersCount int `json:"usersCount"`
U uChat `json:"u"` U UChat `json:"u"`
CustomFields struct { CustomFields struct {
} `json:"customFields"` } `json:"customFields"`
Broadcast bool `json:"broadcast"` Broadcast bool `json:"broadcast"`
@ -119,20 +119,20 @@ type InviteChannelResponse struct {
} }
type ChannelListResponse struct { type ChannelListResponse struct {
Channels []channelList `json:"channels"` Channels []ChannelList `json:"channels"`
Offset int `json:"offset"` Offset int `json:"offset"`
Count int `json:"count"` Count int `json:"count"`
Total int `json:"total"` Total int `json:"total"`
Success bool `json:"success"` Success bool `json:"success"`
} }
type channelList struct { type ChannelList struct {
ID string `json:"_id"` ID string `json:"_id"`
Name string `json:"name"` Name string `json:"name"`
T string `json:"t"` T string `json:"t"`
Usernames []string `json:"usernames"` Usernames []string `json:"usernames"`
Msgs int `json:"msgs"` Msgs int `json:"msgs"`
U uChat `json:"u"` U UChat `json:"u"`
Ts time.Time `json:"ts"` Ts time.Time `json:"ts"`
Ro bool `json:"ro"` Ro bool `json:"ro"`
SysMes bool `json:"sysMes"` SysMes bool `json:"sysMes"`
@ -140,14 +140,14 @@ type channelList struct {
} }
type ChannelMembersResponse struct { type ChannelMembersResponse struct {
Members []member `json:"members"` Members []Member `json:"members"`
Count int `json:"count"` Count int `json:"count"`
Offset int `json:"offset"` Offset int `json:"offset"`
Total int `json:"total"` Total int `json:"total"`
Success bool `json:"success"` Success bool `json:"success"`
} }
type member struct { type Member struct {
ID string `json:"_id"` ID string `json:"_id"`
Username string `json:"username"` Username string `json:"username"`
Name string `json:"name"` Name string `json:"name"`
@ -160,7 +160,7 @@ type RenameChannelRequest struct {
} }
type RenameChannelResponse struct { type RenameChannelResponse struct {
Channel channelList `json:"channel"` Channel ChannelList `json:"channel"`
Success bool `json:"success"` Success bool `json:"success"`
} }

82
chat.go
View File

@ -15,58 +15,58 @@ type Message struct {
Emoji string `json:"emoji,omitempty"` Emoji string `json:"emoji,omitempty"`
RoomID string `json:"roomId,omitempty"` RoomID string `json:"roomId,omitempty"`
Text string `json:"text"` Text string `json:"text"`
Attachments []attachment `json:"attachments"` Attachments []Attachment `json:"attachments"`
} }
type attachment struct { type Attachment struct {
AudioURL string `json:"audio_url"` AudioURL string `json:"audio_url,omitempty"`
AuthorIcon string `json:"author_icon"` AuthorIcon string `json:"author_icon,omitempty"`
AuthorLink string `json:"author_link"` AuthorLink string `json:"author_link,omitempty"`
AuthorName string `json:"author_name"` AuthorName string `json:"author_name,omitempty"`
Collapsed bool `json:"collapsed"` Collapsed bool `json:"collapsed,omitempty"`
Color string `json:"color"` Color string `json:"color,omitempty"`
Fields []attachField `json:"fields"` Fields []AttachField `json:"fields,omitempty"`
ImageURL string `json:"image_url"` ImageURL string `json:"image_url,omitempty"`
MessageLink string `json:"message_link"` MessageLink string `json:"message_link,omitempty"`
Text string `json:"text"` Text string `json:"text,omitempty"`
ThumbURL string `json:"thumb_url"` ThumbURL string `json:"thumb_url,omitempty"`
Title string `json:"title"` Title string `json:"title,omitempty"`
TitleLink string `json:"title_link"` TitleLink string `json:"title_link,omitempty"`
TitleLinkDownload bool `json:"title_link_download"` TitleLinkDownload bool `json:"title_link_download,omitempty"`
Ts time.Time `json:"ts"` Ts time.Time `json:"ts,omitempty"`
VideoURL string `json:"video_url"` VideoURL string `json:"video_url,omitempty"`
} }
type attachField struct { type AttachField struct {
Short bool `json:"short"` Short bool `json:"short,omitempty"`
Title string `json:"title"` Title string `json:"title,omitempty"`
Value string `json:"value"` Value string `json:"value,omitempty"`
} }
type RespPostMessage struct { type RespPostMessage struct {
Ts int64 `json:"ts"` Ts int64 `json:"ts"`
Channel string `json:"channel"` Channel string `json:"channel"`
Message respMessageData `json:"message"` Message RespMessageData `json:"message"`
Success bool `json:"success"` Success bool `json:"success"`
Error string `json:"error,omitempty"` Error string `json:"error,omitempty"`
ErrorType string `json:"errorType,omitempty"` ErrorType string `json:"errorType,omitempty"`
} }
type respMessageData struct { type RespMessageData struct {
Alias string `json:"alias"` Alias string `json:"alias,omitempty"`
Msg string `json:"msg"` Msg string `json:"msg,omitempty"`
ParseUrls bool `json:"parseUrls"` ParseUrls bool `json:"parseUrls,omitempty"`
Groupable bool `json:"groupable"` Groupable bool `json:"groupable,omitempty"`
Ts time.Time `json:"ts"` Ts time.Time `json:"ts,omitempty"`
U uChat `json:"u"` U UChat `json:"u,omitempty"`
Rid string `json:"rid"` Rid string `json:"rid,omitempty"`
UpdatedAt time.Time `json:"_updatedAt"` UpdatedAt time.Time `json:"_updatedAt,omitempty"`
ID string `json:"_id"` ID string `json:"_id,omitempty"`
} }
type uChat struct { type UChat struct {
ID string `json:"_id"` ID string `json:"_id,omitempty"`
Username string `json:"username"` Username string `json:"username,omitempty"`
} }
type SingleMessageId struct { type SingleMessageId struct {
@ -74,11 +74,11 @@ type SingleMessageId struct {
} }
type GetMessageResponse struct { type GetMessageResponse struct {
Message message `json:"message"` Message MessageResp `json:"message"`
Success bool `json:"success"` Success bool `json:"success"`
} }
type message struct { type MessageResp struct {
ID string `json:"_id"` ID string `json:"_id"`
Rid string `json:"rid"` Rid string `json:"rid"`
Msg string `json:"msg"` Msg string `json:"msg"`
@ -108,14 +108,14 @@ type GetPinnedMsgRequest struct {
} }
type GetPinnedMsgResponse struct { type GetPinnedMsgResponse struct {
Messages []pinnedMessage `json:"messages"` Messages []PinnedMessage `json:"messages"`
Count int `json:"count"` Count int `json:"count"`
Offset int `json:"offset"` Offset int `json:"offset"`
Total int `json:"total"` Total int `json:"total"`
Success bool `json:"success"` Success bool `json:"success"`
} }
type pinnedMessage struct { type PinnedMessage struct {
ID string `json:"_id"` ID string `json:"_id"`
Rid string `json:"rid"` Rid string `json:"rid"`
Msg string `json:"msg"` Msg string `json:"msg"`

106
info.go
View File

@ -9,14 +9,14 @@ import (
type RespInfo struct { type RespInfo struct {
Info struct { Info struct {
Version string `json:"version"` Version string `json:"version"`
Build build `json:"build"` Build Build `json:"build"`
Commit commit `json:"commit"` Commit Commit `json:"commit"`
MarketplaceAPIVersion string `json:"marketplaceApiVersion"` MarketplaceAPIVersion string `json:"marketplaceApiVersion"`
} `json:"info"` } `json:"info"`
Success bool `json:"success"` Success bool `json:"success"`
} }
type build struct { type Build struct {
Date time.Time `json:"date"` Date time.Time `json:"date"`
NodeVersion string `json:"nodeVersion"` NodeVersion string `json:"nodeVersion"`
Arch string `json:"arch"` Arch string `json:"arch"`
@ -27,7 +27,7 @@ type build struct {
Cpus int `json:"cpus"` Cpus int `json:"cpus"`
} }
type commit struct { type Commit struct {
Hash string `json:"hash"` Hash string `json:"hash"`
Date string `json:"date"` Date string `json:"date"`
Author string `json:"author"` Author string `json:"author"`
@ -37,24 +37,24 @@ type commit struct {
} }
type RespDirectory struct { type RespDirectory struct {
Result []result `json:"result"` Result []Result `json:"result"`
Count int `json:"count"` Count int `json:"count"`
Offset int `json:"offset"` Offset int `json:"offset"`
Total int `json:"total"` Total int `json:"total"`
Success bool `json:"success"` Success bool `json:"success"`
} }
type result struct { type Result struct {
ID string `json:"_id"` ID string `json:"_id"`
Ts time.Time `json:"ts"` Ts time.Time `json:"ts"`
T string `json:"t"` T string `json:"t"`
Name string `json:"name"` Name string `json:"name"`
UsersCount int `json:"usersCount"` UsersCount int `json:"usersCount"`
Default bool `json:"default"` Default bool `json:"default"`
LastMessage lastMessage `json:"lastMessage"` LastMessage LastMessage `json:"lastMessage"`
} }
type lastMessage struct { type LastMessage struct {
ID string `json:"_id"` ID string `json:"_id"`
Alias string `json:"alias"` Alias string `json:"alias"`
Msg string `json:"msg"` Msg string `json:"msg"`
@ -62,27 +62,27 @@ type lastMessage struct {
ParseUrls bool `json:"parseUrls"` ParseUrls bool `json:"parseUrls"`
Groupable bool `json:"groupable"` Groupable bool `json:"groupable"`
Ts time.Time `json:"ts"` Ts time.Time `json:"ts"`
U u `json:"u"` U U `json:"u"`
Rid string `json:"rid"` Rid string `json:"rid"`
UpdatedAt time.Time `json:"_updatedAt"` UpdatedAt time.Time `json:"_updatedAt"`
Mentions []interface{} `json:"mentions"` Mentions []interface{} `json:"mentions"`
Channels []interface{} `json:"channels"` Channels []interface{} `json:"channels"`
} }
type u struct { type U struct {
ID string `json:"_id"` ID string `json:"_id"`
Username string `json:"username"` Username string `json:"username"`
Name string `json:"name,omitempty"` Name string `json:"name,omitempty"`
} }
type RespSpotlight struct { type RespSpotlight struct {
Users []usersInfo `json:"users"` Users []UsersInfo `json:"users"`
Rooms []roomsInfo `json:"rooms"` Rooms []RoomsInfo `json:"rooms"`
Success bool `json:"success"` Success bool `json:"success"`
Error string `json:"error,omitempty"` Error string `json:"error,omitempty"`
} }
type usersInfo struct { type UsersInfo struct {
ID string `json:"_id"` ID string `json:"_id"`
Status string `json:"status"` Status string `json:"status"`
Name string `json:"name"` Name string `json:"name"`
@ -90,16 +90,16 @@ type usersInfo struct {
StatusText string `json:"statusText"` StatusText string `json:"statusText"`
} }
type roomsInfo struct { type RoomsInfo struct {
ID string `json:"_id"` ID string `json:"_id"`
Name string `json:"name"` Name string `json:"name"`
T string `json:"t"` T string `json:"t"`
LastMessage lastMessage `json:"lastMessage"` LastMessage LastMessage `json:"lastMessage"`
} }
type RespStatistics struct { type RespStatistics struct {
ID string `json:"_id"` ID string `json:"_id"`
Wizard wizard `json:"wizard"` Wizard Wizard `json:"wizard"`
UniqueID string `json:"uniqueId"` UniqueID string `json:"uniqueId"`
InstalledAt time.Time `json:"installedAt"` InstalledAt time.Time `json:"installedAt"`
Version string `json:"version"` Version string `json:"version"`
@ -132,32 +132,32 @@ type RespStatistics struct {
LastLogin time.Time `json:"lastLogin"` LastLogin time.Time `json:"lastLogin"`
LastMessageSentAt time.Time `json:"lastMessageSentAt"` LastMessageSentAt time.Time `json:"lastMessageSentAt"`
LastSeenSubscription time.Time `json:"lastSeenSubscription"` LastSeenSubscription time.Time `json:"lastSeenSubscription"`
Os os `json:"os"` Os Os `json:"os"`
Process process `json:"process"` Process Process `json:"process"`
Deploy deploy `json:"deploy"` Deploy Deploy `json:"deploy"`
EnterpriseReady bool `json:"enterpriseReady"` EnterpriseReady bool `json:"enterpriseReady"`
UploadsTotal int `json:"uploadsTotal"` UploadsTotal int `json:"uploadsTotal"`
UploadsTotalSize int `json:"uploadsTotalSize"` UploadsTotalSize int `json:"uploadsTotalSize"`
Migration migration `json:"migration"` Migration Migration `json:"migration"`
InstanceCount int `json:"instanceCount"` InstanceCount int `json:"instanceCount"`
OplogEnabled bool `json:"oplogEnabled"` OplogEnabled bool `json:"oplogEnabled"`
MongoVersion string `json:"mongoVersion"` MongoVersion string `json:"mongoVersion"`
MongoStorageEngine string `json:"mongoStorageEngine"` MongoStorageEngine string `json:"mongoStorageEngine"`
UniqueUsersOfYesterday stats `json:"uniqueUsersOfYesterday"` UniqueUsersOfYesterday Stats `json:"uniqueUsersOfYesterday"`
UniqueUsersOfLastMonth stats `json:"uniqueUsersOfLastMonth"` UniqueUsersOfLastMonth Stats `json:"uniqueUsersOfLastMonth"`
UniqueDevicesOfYesterday stats `json:"uniqueDevicesOfYesterday"` UniqueDevicesOfYesterday Stats `json:"uniqueDevicesOfYesterday"`
UniqueDevicesOfLastMonth stats `json:"uniqueDevicesOfLastMonth"` UniqueDevicesOfLastMonth Stats `json:"uniqueDevicesOfLastMonth"`
UniqueOSOfYesterday stats `json:"uniqueOSOfYesterday"` UniqueOSOfYesterday Stats `json:"uniqueOSOfYesterday"`
UniqueOSOfLastMonth stats `json:"uniqueOSOfLastMonth"` UniqueOSOfLastMonth Stats `json:"uniqueOSOfLastMonth"`
Apps apps `json:"apps"` Apps Apps `json:"apps"`
Integrations integrations `json:"integrations"` Integrations Integrations `json:"integrations"`
PushQueue int `json:"pushQueue"` PushQueue int `json:"pushQueue"`
CreatedAt time.Time `json:"createdAt"` CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"_updatedAt"` UpdatedAt time.Time `json:"_updatedAt"`
Success bool `json:"success"` Success bool `json:"success"`
} }
type wizard struct { type Wizard struct {
OrganizationType string `json:"organizationType"` OrganizationType string `json:"organizationType"`
Industry string `json:"industry"` Industry string `json:"industry"`
Size string `json:"size"` Size string `json:"size"`
@ -167,7 +167,7 @@ type wizard struct {
RegisterServer bool `json:"registerServer"` RegisterServer bool `json:"registerServer"`
} }
type os struct { type Os struct {
Type string `json:"type"` Type string `json:"type"`
Platform string `json:"platform"` Platform string `json:"platform"`
Arch string `json:"arch"` Arch string `json:"arch"`
@ -176,16 +176,16 @@ type os struct {
Loadavg []float64 `json:"loadavg"` Loadavg []float64 `json:"loadavg"`
Totalmem int64 `json:"totalmem"` Totalmem int64 `json:"totalmem"`
Freemem int `json:"freemem"` Freemem int `json:"freemem"`
Cpus []cpus `json:"cpus"` Cpus []Cpus `json:"cpus"`
} }
type cpus struct { type Cpus struct {
Model string `json:"model"` Model string `json:"model"`
Speed int `json:"speed"` Speed int `json:"speed"`
Times times `json:"times"` Times Times `json:"times"`
} }
type times struct { type Times struct {
User int `json:"user"` User int `json:"user"`
Nice int `json:"nice"` Nice int `json:"nice"`
Sys int `json:"sys"` Sys int `json:"sys"`
@ -193,20 +193,20 @@ type times struct {
Irq int `json:"irq"` Irq int `json:"irq"`
} }
type process struct { type Process struct {
NodeVersion string `json:"nodeVersion"` NodeVersion string `json:"nodeVersion"`
Pid int `json:"pid"` Pid int `json:"pid"`
Uptime float64 `json:"uptime"` Uptime float64 `json:"uptime"`
} }
type apps struct { type Apps struct {
EngineVersion string `json:"engineVersion"` EngineVersion string `json:"engineVersion"`
Enabled bool `json:"enabled"` Enabled bool `json:"enabled"`
TotalInstalled int `json:"totalInstalled"` TotalInstalled int `json:"totalInstalled"`
TotalActive int `json:"totalActive"` TotalActive int `json:"totalActive"`
} }
type integrations struct { type Integrations struct {
TotalIntegrations int `json:"totalIntegrations"` TotalIntegrations int `json:"totalIntegrations"`
TotalIncoming int `json:"totalIncoming"` TotalIncoming int `json:"totalIncoming"`
TotalIncomingActive int `json:"totalIncomingActive"` TotalIncomingActive int `json:"totalIncomingActive"`
@ -215,20 +215,20 @@ type integrations struct {
TotalWithScriptEnabled int `json:"totalWithScriptEnabled"` TotalWithScriptEnabled int `json:"totalWithScriptEnabled"`
} }
type stats struct { type Stats struct {
Year int `json:"year"` Year int `json:"year"`
Month int `json:"month"` Month int `json:"month"`
Day int `json:"day"` Day int `json:"day"`
Data []interface{} `json:"data"` Data []interface{} `json:"data"`
} }
type migration struct { type Migration struct {
ID string `json:"_id"` ID string `json:"_id"`
Locked bool `json:"locked"` Locked bool `json:"locked"`
Version int `json:"version"` Version int `json:"version"`
} }
type deploy struct { type Deploy struct {
Method string `json:"method"` Method string `json:"method"`
Platform string `json:"platform"` Platform string `json:"platform"`
} }
@ -236,7 +236,7 @@ type deploy struct {
type RespStatisticsList struct { type RespStatisticsList struct {
Statistics []struct { Statistics []struct {
ID string `json:"_id"` ID string `json:"_id"`
Wizard wizard `json:"wizard"` Wizard Wizard `json:"wizard"`
UniqueID string `json:"uniqueId"` UniqueID string `json:"uniqueId"`
InstalledAt time.Time `json:"installedAt"` InstalledAt time.Time `json:"installedAt"`
Version string `json:"version"` Version string `json:"version"`
@ -265,25 +265,25 @@ type RespStatisticsList struct {
TotalMessages int `json:"totalMessages"` TotalMessages int `json:"totalMessages"`
FederatedServers int `json:"federatedServers"` FederatedServers int `json:"federatedServers"`
FederatedUsers int `json:"federatedUsers"` FederatedUsers int `json:"federatedUsers"`
Os os `json:"os"` Os Os `json:"os"`
Process process `json:"process"` Process Process `json:"process"`
Deploy deploy `json:"deploy"` Deploy Deploy `json:"deploy"`
EnterpriseReady bool `json:"enterpriseReady"` EnterpriseReady bool `json:"enterpriseReady"`
UploadsTotal int `json:"uploadsTotal"` UploadsTotal int `json:"uploadsTotal"`
UploadsTotalSize int `json:"uploadsTotalSize"` UploadsTotalSize int `json:"uploadsTotalSize"`
Migration migration `json:"migration"` Migration Migration `json:"migration"`
InstanceCount int `json:"instanceCount"` InstanceCount int `json:"instanceCount"`
OplogEnabled bool `json:"oplogEnabled"` OplogEnabled bool `json:"oplogEnabled"`
MongoVersion string `json:"mongoVersion"` MongoVersion string `json:"mongoVersion"`
MongoStorageEngine string `json:"mongoStorageEngine"` MongoStorageEngine string `json:"mongoStorageEngine"`
UniqueUsersOfYesterday stats `json:"uniqueUsersOfYesterday"` UniqueUsersOfYesterday Stats `json:"uniqueUsersOfYesterday"`
UniqueUsersOfLastMonth stats `json:"uniqueUsersOfLastMonth"` UniqueUsersOfLastMonth Stats `json:"uniqueUsersOfLastMonth"`
UniqueDevicesOfYesterday stats `json:"uniqueDevicesOfYesterday"` UniqueDevicesOfYesterday Stats `json:"uniqueDevicesOfYesterday"`
UniqueDevicesOfLastMonth stats `json:"uniqueDevicesOfLastMonth"` UniqueDevicesOfLastMonth Stats `json:"uniqueDevicesOfLastMonth"`
UniqueOSOfYesterday stats `json:"uniqueOSOfYesterday"` UniqueOSOfYesterday Stats `json:"uniqueOSOfYesterday"`
UniqueOSOfLastMonth stats `json:"uniqueOSOfLastMonth"` UniqueOSOfLastMonth Stats `json:"uniqueOSOfLastMonth"`
Apps apps `json:"apps"` Apps Apps `json:"apps"`
Integrations integrations `json:"integrations"` Integrations Integrations `json:"integrations"`
PushQueue int `json:"pushQueue"` PushQueue int `json:"pushQueue"`
CreatedAt time.Time `json:"createdAt"` CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"_updatedAt"` UpdatedAt time.Time `json:"_updatedAt"`