GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cav2/structs.go at main · TeamEndAllReality/cav2
This repository was archived by the owner on Mar 1, 2023. It is now read-only.
Expand file tree/ Copy pathstructs.goMore file actions 218 lines (197 loc) · 8.69 KB / Copy pathstructs.goFile metadata and controls218 lines (197 loc) · 8.69 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 package cav2 //Curseforge api //Addon of curseforge type Addon struct { Attachments []AddonAttachments `json:"attachments"` Authors []AddonAuthors `json:"authors"` AvatarURL interface{} `json:"avatarUrl"` Categories []AddonCategories `json:"categories"` CategoryList string `json:"categoryList"` CategorySection AddonCategorySection `json:"categorySection"` ClientURL string `json:"clientUrl"` CommentCount int `json:"commentCount"` DateCreated string `json:"dateCreated"` DateModified string `json:"dateModified"` DateReleased string `json:"dateReleased"` DefaultFileID int `json:"defaultFileId"` DonationURL interface{} `json:"donationUrl"` DownloadCount float64 `json:"downloadCount"` ExternalURL interface{} `json:"externalUrl"` FullDescription string `json:"fullDescription"` GameID int `json:"gameId"` GameName string `json:"gameName"` GamePopularityRank int `json:"gamePopularityRank"` GameVersionLatestFiles []AddonGameVersion `json:"gameVersionLatestFiles"` ID int `json:"id"` InstallCount int `json:"installCount"` IsAvailable bool `json:"isAvailable"` IsFeatured bool `json:"isFeatured"` LatestFiles []AddonLatestFile `json:"latestFiles"` Likes int `json:"likes"` Name string `json:"name"` PackageType int `json:"packageType"` PopularityScore float64 `json:"popularityScore"` PortalName string `json:"portalName"` PrimaryAuthorName string `json:"primaryAuthorName"` PrimaryCategoryAvatarURL string `json:"primaryCategoryAvatarUrl"` PrimaryCategoryName string `json:"primaryCategoryName"` Rating int `json:"rating"` SectionName string `json:"sectionName"` Slug string `json:"slug"` Stage int `json:"stage"` Status int `json:"status"` Summary string `json:"summary"` WebsiteURL string `json:"websiteUrl"` } //AddonAttachments embedded attachments on the curseforge page (images,etc) type AddonAttachments struct { Description string `json:"description"` ID int `json:"id"` IsDefault bool `json:"isDefault"` ProjectID int `json:"projectID"` ThumbnailURL string `json:"thumbnailUrl"` Title string `json:"title"` URL string `json:"url"` } //AddonAuthors Represents an author of an addon type AddonAuthors struct { Name string `json:"name"` URL string `json:"url"` } //AddonCategories represents the category or an addon type AddonCategories struct { ID int `json:"id"` Name string `json:"name"` URL string `json:"url"` } //AddonCategorySection Section of addon type AddonCategorySection struct { ID int `json:"Id"` ExtraIncludePattern interface{} `json:"extraIncludePattern"` GameID int `json:"gameId"` InitialInclusionPattern string `json:"initialInclusionPattern"` Name string `json:"name"` PackageType int `json:"packageType"` Path string `json:"path"` } //AddonGameVersion AddonGameVersion type AddonGameVersion struct { FileType int `json:"fileType"` GameVersion string `json:"gameVersion"` ProjectFileID int `json:"projectFileId"` ProjectFileName string `json:"projectFileName"` } //AddonLatestFile Latest file uploads type AddonLatestFile struct { AlternateFileID int `json:"alternateFileId"` Dependencies []AddonDependency `json:"dependencies"` DownloadURL string `json:"downloadUrl"` FileDate string `json:"fileDate"` FileName string `json:"fileName"` FileNameOnDisk string `json:"fileNameOnDisk"` FileStatus int `json:"fileStatus"` GameVersion []string `json:"gameVersion"` ID int `json:"id"` IsAlternate bool `json:"isAlternate"` IsAvailable bool `json:"isAvailable"` Modules []AddonModules `json:"modules"` PackageFingerprint int `json:"packageFingerprint"` ReleaseType int `json:"releaseType"` } //AddonDependency a dependency of an addon type AddonDependency struct { AddonID int `json:"addonId"` Type int `json:"type"` } //AddonModules Folders in addon File type AddonModules struct { Fingerprint int `json:"fingerprint"` FolderName string `json:"folderName"` } //File a single file type File struct { ID int `json:"id"` FileName string `json:"fileName"` FileNameOnDisk string `json:"fileNameOnDisk"` FileDate string `json:"fileDate"` ReleaseType int `json:"releaseType"` FileStatus int `json:"fileStatus"` DownloadURL string `json:"downloadUrl"` IsAlternate bool `json:"isAlternate"` AlternateFileID int `json:"alternateFileId"` Dependencies []AddonDependency `json:"dependencies"` IsAvailable bool `json:"isAvailable"` Modules []AddonModules `json:"modules"` PackageFingerprint int64 `json:"packageFingerprint"` GameVersion []string `json:"gameVersion"` } //FingerprintList List of fingerprint matches type FingerprintList struct { IsCacheBuilt bool `json:"isCacheBuilt"` ExactMatches []FingerprintMatch `json:"exactMatches"` ExactFingerprints []int `json:"exactFingerprints"` InstalledFingerprints []int `json:"installedFingerprints"` } //FingerprintMatch match of addon fingerprint type FingerprintMatch struct { AddonID int `json:"id"` File File `json:"file"` } // Auth //Register user/pass object type Register struct { Username string `json:"Username"` Password string `json:"Password"` Email string `json:"Email"` Newsletter bool `json:"Newsletter"` } //AuthenticationResponse Response of auth type AuthenticationResponse struct { Status int `json:"Status"` StatusMessage string `json:"StatusMessage"` Session AuthSession `json:"Session"` } //AuthSession Session of auth type AuthSession struct { UserID int `json:"UserID"` Username string `json:"Username"` DisplayName string `json:"DisplayName"` SessionID string `json:"SessionID"` Token string `json:"Token"` EmailAddress string `json:"EmailAddress"` EffectivePremiumStatus bool `json:"EffectivePremiumStatus"` ActualPremiumStatus bool `json:"ActualPremiumStatus"` SubscriptionToken int `json:"SubscriptionToken"` Expires int `json:"Expires"` RenewAfter int `json:"RenewAfter"` IsTemporaryAccount bool `json:"IsTemporaryAccount"` IsMerged bool `json:"IsMerged"` Bans int `json:"Bans"` } //Login user/pass type Login struct { Username string `json:"Username"` Password string `json:"Password"` } //TwitchOAuthRequest https://logins-v1.curseapp.net/Help/Api/POST-login-twitch-oauth type TwitchOAuthRequest struct { ClientID string `json:"ClientID"` Code string `json:"Code"` RedirectURI string `json:"RedirectUri"` State string `json:"State"` } //TwitchOAuthResponse Response from above type TwitchOAuthResponse struct { Status int `json:"Status"` Session AuthSession `json:"Session"` TwitchUsername string `json:"TwitchUsername"` TwitchDisplayName string `json:"TwitchDisplayName"` TwitchAvatar string `json:"TwitchAvatar"` TwitchUserID string `json:"TwitchUserID"` } //RenewTokenResponseContract OAuth stuffs type RenewTokenResponseContract struct { Token string `json:"Token"` Expires int `json:"Expires"` RenewAfter int `json:"RenewAfter"` } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |