Documentation ¶
Index ¶
- Constants
- func CreateHandler(fn func(*gin.Context) *APIError) func(*gin.Context)
- type APIError
- func APIErrorBadRequest(message string) *APIError
- func APIErrorForbidden(message string) *APIError
- func APIErrorNotFound(message string) *APIError
- func APIErrorServerError(message string, err error) *APIError
- func APIErrorUnauthorized(message string) *APIError
- func AcceptClanInvite(c *gin.Context) *APIError
- func AddCrashLog(c *gin.Context) *APIError
- func AddFriend(c *gin.Context) *APIError
- func AddMapToPlaylist(c *gin.Context) *APIError
- func AddNewGameBuild(c *gin.Context) *APIError
- func AddRankingQueueComment(c *gin.Context) *APIError
- func BanUser(c *gin.Context) *APIError
- func BlacklistRankingQueueMapset(c *gin.Context) *APIError
- func ChangeUserUsername(c *gin.Context) *APIError
- func CreateClan(c *gin.Context) *APIError
- func CreateMusicArtistAlbum(c *gin.Context) *APIError
- func CreateNewApplication(c *gin.Context) *APIError
- func CreateOrderCheckoutSession(c *gin.Context) *APIError
- func CreatePinnedScore(c *gin.Context) *APIError
- func CreatePlaylist(c *gin.Context) *APIError
- func CreateUserNotification(c *gin.Context) *APIError
- func DeclineClanInvite(c *gin.Context) *APIError
- func DeleteClan(c *gin.Context) *APIError
- func DeleteMapset(c *gin.Context) *APIError
- func DeleteMusicArtist(c *gin.Context) *APIError
- func DeleteMusicArtistAlbum(c *gin.Context) *APIError
- func DeleteMusicArtistSong(c *gin.Context) *APIError
- func DeleteNotification(c *gin.Context) *APIError
- func DeletePlaylist(c *gin.Context) *APIError
- func DeleteUserApplication(c *gin.Context) *APIError
- func DenyRankingQueueMapset(c *gin.Context) *APIError
- func DownloadMapset(c *gin.Context) *APIError
- func DownloadMultiplayerMapset(c *gin.Context) *APIError
- func DownloadQua(c *gin.Context) *APIError
- func DownloadReplay(c *gin.Context) *APIError
- func EditRankingQueueComment(c *gin.Context) *APIError
- func FinalizePaidStripeInvoice(event *stripe.Event) *APIError
- func FinalizeSteamTransaction(c *gin.Context) *APIError
- func FinalizeStripeOrder(event *stripe.Event) *APIError
- func GetActiveSubscriptions(c *gin.Context) *APIError
- func GetAllScoresForMap(c *gin.Context) *APIError
- func GetCanUserChangeUsername(c *gin.Context) *APIError
- func GetChatHistory(c *gin.Context) *APIError
- func GetClan(c *gin.Context) *APIError
- func GetClanActivity(c *gin.Context) *APIError
- func GetClanInvite(c *gin.Context) *APIError
- func GetClanLeaderboard(c *gin.Context) *APIError
- func GetClanMembers(c *gin.Context) *APIError
- func GetClanPendingInvites(c *gin.Context) *APIError
- func GetClanPersonalBestScore(c *gin.Context) *APIError
- func GetClanScoresForMap(c *gin.Context) *APIError
- func GetClanScoresForMode(c *gin.Context) *APIError
- func GetCountryLeaderboard(c *gin.Context) *APIError
- func GetCountryPlayers(c *gin.Context) *APIError
- func GetCountryScoresForMap(c *gin.Context) *APIError
- func GetDonatorPrices(c *gin.Context) *APIError
- func GetFriendScoresForMap(c *gin.Context) *APIError
- func GetFriendsList(c *gin.Context) *APIError
- func GetGlobalLeaderboardForMode(c *gin.Context) *APIError
- func GetGlobalScoresForMap(c *gin.Context) *APIError
- func GetMap(c *gin.Context) *APIError
- func GetMapMods(c *gin.Context) *APIError
- func GetMapsetById(c *gin.Context) *APIError
- func GetMapsetOnlineOffsets(c *gin.Context) *APIError
- func GetMapsetsSearch(c *gin.Context) *APIError
- func GetModifierScoresForMap(c *gin.Context) *APIError
- func GetMultiplayerGame(c *gin.Context) *APIError
- func GetMusicArtists(c *gin.Context) *APIError
- func GetOrderItemById(c *gin.Context) *APIError
- func GetPinnedScoresForMode(c *gin.Context) *APIError
- func GetPlaylist(c *gin.Context) *APIError
- func GetPlaylistContainsMap(c *gin.Context) *APIError
- func GetRankedMapsetIds(c *gin.Context) *APIError
- func GetRankingQueue(c *gin.Context) *APIError
- func GetRankingQueueComments(c *gin.Context) *APIError
- func GetRankingQueueConfig(c *gin.Context) *APIError
- func GetRankingQueueMapset(c *gin.Context) *APIError
- func GetRankingSupervisorActions(c *gin.Context) *APIError
- func GetRateScoresForMap(c *gin.Context) *APIError
- func GetRecentMultiplayerGames(c *gin.Context) *APIError
- func GetServerStats(c *gin.Context) *APIError
- func GetSingleMusicArtist(c *gin.Context) *APIError
- func GetTeamMembers(c *gin.Context) *APIError
- func GetTotalHitsLeaderboard(c *gin.Context) *APIError
- func GetUser(c *gin.Context) *APIError
- func GetUserAboutMe(c *gin.Context) *APIError
- func GetUserAchievements(c *gin.Context) *APIError
- func GetUserActivity(c *gin.Context) *APIError
- func GetUserApplication(c *gin.Context) *APIError
- func GetUserApplications(c *gin.Context) *APIError
- func GetUserBadges(c *gin.Context) *APIError
- func GetUserBestScoresForMode(c *gin.Context) *APIError
- func GetUserFirstPlaceScoresForMode(c *gin.Context) *APIError
- func GetUserFreeTrialDonatorOrder(c *gin.Context) *APIError
- func GetUserGradesForMode(c *gin.Context) *APIError
- func GetUserMapsets(c *gin.Context) *APIError
- func GetUserMostPlayedMaps(c *gin.Context) *APIError
- func GetUserNotifications(c *gin.Context) *APIError
- func GetUserOrders(c *gin.Context) *APIError
- func GetUserPendingClanInvites(c *gin.Context) *APIError
- func GetUserPersonalBestScoreAll(c *gin.Context) *APIError
- func GetUserPersonalBestScoreGlobal(c *gin.Context) *APIError
- func GetUserPersonalBestScoreMods(c *gin.Context) *APIError
- func GetUserPersonalBestScoreRate(c *gin.Context) *APIError
- func GetUserPlaylists(c *gin.Context) *APIError
- func GetUserRankStatisticsForMode(c *gin.Context) *APIError
- func GetUserRecentScoresForMode(c *gin.Context) *APIError
- func GetUserScoresForClanScore(c *gin.Context) *APIError
- func GetVirtualReplayPlayerOutput(c *gin.Context) *APIError
- func GetWeeklyMostPlayedMapsets(c *gin.Context) *APIError
- func HandleMapsetSubmission(c *gin.Context) *APIError
- func HandleStripeWebhook(c *gin.Context) *APIError
- func InitiateSteamDonatorTransaction(c *gin.Context) *APIError
- func InitiateStripeDonatorCheckoutSession(c *gin.Context) *APIError
- func InsertMusicArtist(c *gin.Context) *APIError
- func InsertOrUpdateMap(user *db.User, mapset *db.Mapset, quaFile *qua.Qua) (*db.MapQua, *APIError)
- func InviteUserToClan(c *gin.Context) *APIError
- func IsUsernameAvailable(c *gin.Context) *APIError
- func KickClanMember(c *gin.Context) *APIError
- func LeaveClan(c *gin.Context) *APIError
- func MarkAllNotificationsAsRead(c *gin.Context) *APIError
- func MarkMapsetAsExplicit(c *gin.Context) *APIError
- func MarkMapsetAsNotExplicit(c *gin.Context) *APIError
- func MarkUserNotificationAsRead(c *gin.Context) *APIError
- func MarkUserNotificationAsUnread(c *gin.Context) *APIError
- func ModifyStripeSubscription(c *gin.Context) *APIError
- func OnHoldRankingQueueMapset(c *gin.Context) *APIError
- func RegisterNewUser(c *gin.Context) *APIError
- func RemoveFriend(c *gin.Context) *APIError
- func RemoveFromRankingQueue(c *gin.Context) *APIError
- func RemoveMapFromPlaylist(c *gin.Context) *APIError
- func RemovePinnedScore(c *gin.Context) *APIError
- func ResetApplicationSecret(c *gin.Context) *APIError
- func SearchPlaylists(c *gin.Context) *APIError
- func SearchUsers(c *gin.Context) *APIError
- func SortMusicArtistAlbums(c *gin.Context) *APIError
- func SortMusicArtistSongs(c *gin.Context) *APIError
- func SortMusicArtists(c *gin.Context) *APIError
- func SortPinnedScores(c *gin.Context) *APIError
- func SubmitMapMod(c *gin.Context) *APIError
- func SubmitMapModComment(c *gin.Context) *APIError
- func SubmitMapsetToRankingQueue(c *gin.Context) *APIError
- func TransferClanOwnership(c *gin.Context) *APIError
- func UnbanUser(c *gin.Context) *APIError
- func UpdateApplication(c *gin.Context) *APIError
- func UpdateClan(c *gin.Context) *APIError
- func UpdateElasticSearchMapset(c *gin.Context) *APIError
- func UpdateMapModStatus(c *gin.Context) *APIError
- func UpdateMapsetDescription(c *gin.Context) *APIError
- func UpdateMusicArtist(c *gin.Context) *APIError
- func UpdateMusicArtistAlbum(c *gin.Context) *APIError
- func UpdateMusicArtistSong(c *gin.Context) *APIError
- func UpdatePlaylist(c *gin.Context) *APIError
- func UpdateUserAboutMe(c *gin.Context) *APIError
- func UpdateUserAccentColor(c *gin.Context) *APIError
- func UpdateUserDiscordId(c *gin.Context) *APIError
- func UploadClanAvatar(c *gin.Context) *APIError
- func UploadClanBanner(c *gin.Context) *APIError
- func UploadMultiplayerMapset(c *gin.Context) *APIError
- func UploadMusicArtistAlbumCover(c *gin.Context) *APIError
- func UploadMusicArtistAvatar(c *gin.Context) *APIError
- func UploadMusicArtistBanner(c *gin.Context) *APIError
- func UploadMusicArtistSong(c *gin.Context) *APIError
- func UploadPlaylistCover(c *gin.Context) *APIError
- func UploadUnsubmittedMap(c *gin.Context) *APIError
- func UploadUserProfileCover(c *gin.Context) *APIError
- func VoteForRankingQueueMapset(c *gin.Context) *APIError
- type ClanImage
- type DonatorPaymentMethod
- type DonatorPricing
- type MusicArtistImage
Constants ¶
const (
MaxNormalScoreboardLimit int = 50
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶
func APIErrorBadRequest ¶
func APIErrorForbidden ¶
func APIErrorNotFound ¶
func APIErrorServerError ¶
func APIErrorUnauthorized ¶
func AcceptClanInvite ¶
AcceptClanInvite Accepts a clan invitation and joins the clan Endpoint: POST /v2/clan/invite/:id/accept
func AddCrashLog ¶
AddCrashLog Adds a new crash log into the database Endpoint: /v2/log/crash
func AddFriend ¶
AddFriend Adds a friend to the logged-in user's friends list Endpoint: POST /v2/user/:id/relationship/add
func AddMapToPlaylist ¶
AddMapToPlaylist Adds a map to a playlist Endpoint: /v2/playlist/:id/add/:map_id
func AddNewGameBuild ¶
AddNewGameBuild Adds a new game build to the database Endpoint: POST /v2/builds
func AddRankingQueueComment ¶
AddRankingQueueComment Inserts a ranking queue comment to the database Endpoint: POST /v2/ranking/queue/:id/comment
func BlacklistRankingQueueMapset ¶
BlacklistRankingQueueMapset Blacklists a mapset from the ranking queue Endpoint: POST /v2/ranking/queue/:id/blacklist
func ChangeUserUsername ¶
ChangeUserUsername Changes a user's username Endpoint: POST /v2/user/profile/username
func CreateClan ¶
CreateClan Creates a new clan if the user is eligible to. Endpoint: POST /v2/clan
func CreateMusicArtistAlbum ¶
CreateMusicArtistAlbum Creates a new album for a music artist Endpoint: POST /v2/artists/:id/album
func CreateNewApplication ¶
CreateNewApplication Creates a new application Endpoint: POST /v2/developers/applications
func CreateOrderCheckoutSession ¶
CreateOrderCheckoutSession Creates a checkout session for a given order (store items) Endpoint: POST /v2/orders/checkout
func CreatePinnedScore ¶
CreatePinnedScore Adds a pinned score Endpoint: POST /v2/scores/:id/pin
func CreatePlaylist ¶
CreatePlaylist Creates a new playlist Endpoint: /v2/playlists
func CreateUserNotification ¶
CreateUserNotification Inserts a user notification into the db Endpoint: POST /v2/notifications
func DeclineClanInvite ¶
DeclineClanInvite Declines a clan invite and deletes it Endpoint: POST /v2/clan/invite/:id/decline
func DeleteClan ¶
DeleteClan Deletes an individual clan Endpoint: DELETE /v2/clan/:id
func DeleteMapset ¶
DeleteMapset Removes a mapset from being visible on the server Endpoint: POST /v2/mapset/:id/delete
func DeleteMusicArtist ¶
DeleteMusicArtist Deletes a music artist (hides) Endpoint: DELETE /v2/artists/:id
func DeleteMusicArtistAlbum ¶
DeleteMusicArtistAlbum Deletes a music artist's album Endpoint: DELETE /v2/artists/album/:id
func DeleteMusicArtistSong ¶
DeleteMusicArtistSong Deletes a music artist's song Endpoint: DELETE /v2/artists/song/:id
func DeleteNotification ¶
DeleteNotification Deletes a notification from the DB Endpoint: DELETE /v2/notifications/:id
func DeletePlaylist ¶
DeletePlaylist Deletes (hides) a playlist Endpoint: DELETE /v2/playlists/:id
func DeleteUserApplication ¶
DeleteUserApplication Deletes a user's application Endpoint: DELETE /v2/developers/applications/:id
func DenyRankingQueueMapset ¶
DenyRankingQueueMapset Adds a deny to a ranking queue mapset Endpoint: POST /v2/ranking/queue/:id/deny
func DownloadMapset ¶
DownloadMapset Handles the downloading of an individual .qp file Endpoint: GET /v2/download/mapset/:id
func DownloadMultiplayerMapset ¶
DownloadMultiplayerMapset Serves the multiplayer mapset that was shared Endpoint: GET /v2/download/multiplayer/:id
func DownloadQua ¶
DownloadQua Handles the downloading of an individual .qua file Endpoint: GET /v2/download/map/:id
func DownloadReplay ¶
DownloadReplay Handles the downloading of a replay file Endpoint: GET /v2/download/replay/:id
func EditRankingQueueComment ¶
EditRankingQueueComment Edits a ranking queue comment Endpoint: POST /v2/ranking/queue/comment/:id/edit
func FinalizePaidStripeInvoice ¶
func FinalizePaidStripeInvoice(event *stripe.Event) *APIError
FinalizePaidStripeInvoice Handles when a user pays their Stripe invoice
func FinalizeSteamTransaction ¶
FinalizeSteamTransaction Finalizes a Steam transaction Endpoint: GET /v2/orders/steam/finalize?order_id=&transaction_id=
func FinalizeStripeOrder ¶
func FinalizeStripeOrder(event *stripe.Event) *APIError
FinalizeStripeOrder Handles the finalization of a Stripe order
func GetActiveSubscriptions ¶
GetActiveSubscriptions Returns a user's active subscriptions GET /v2/orders/stripe/subscriptions
func GetAllScoresForMap ¶
GetAllScoresForMap Retrieves all scores for a given map Endpoint: GET v2/scores/:md5/all
func GetCanUserChangeUsername ¶
GetCanUserChangeUsername Returns if a user is eligible to change their username Endpoint: GET /v2/user/profile/username/eligible
func GetChatHistory ¶
GetChatHistory Retrieves the chat message history for a given channel Endpoint: GET /v2/chat/:channel/history?page=0
func GetClanActivity ¶
GetClanActivity Retrieves clan activity from the database GET /v2/clan/:id/activity?page=0
func GetClanInvite ¶
GetClanInvite Retrieves a clan invite by id Endpoint: GET /v2/clan/invite/:id
func GetClanLeaderboard ¶
GetClanLeaderboard Retrieves the clan leaderboard for a given game mode
func GetClanMembers ¶
GetClanMembers Retrieves a list of members in the clan GET /v2/clan/:id/members
func GetClanPendingInvites ¶
GetClanPendingInvites Returns a clan's pending invites Endpoint: GET /v2/clan/invites
func GetClanPersonalBestScore ¶
GetClanPersonalBestScore Retrieves a clan's best score on a map Endpoint: GET /v2/scores/:md5/:clan_id/clan
func GetClanScoresForMap ¶
GetClanScoresForMap Retrieves the scoreboard for a clan Endpoint: GET /v2/scores/:md5/clans
func GetClanScoresForMode ¶
GetClanScoresForMode Retrieves clan scores for a given mode Endpoint: GET /v2/clan/:id/scores/:mode
func GetCountryLeaderboard ¶
GetCountryLeaderboard Retrieves the country leaderboard for a given country and mode Endpoint: GET /v2/leaderboard/country?country=&mode=&page=
func GetCountryPlayers ¶
GetCountryPlayers Returns the countries and their total user counts Endpoint: /v2/server/stats/countries
func GetCountryScoresForMap ¶
GetCountryScoresForMap Retrieves country scores for a given map Endpoint: GET v2/scores/:md5/country/:country
func GetDonatorPrices ¶
GetDonatorPrices Returns the current donator prices Endpoint: GET /v2/orders/donations/prices
func GetFriendScoresForMap ¶
GetFriendScoresForMap Retrieves the friends scoreboard for a given map. Endpoint: GET: /v2/scores/:md5/friends
func GetFriendsList ¶
GetFriendsList Retrieves the logged-in user's friend's list Endpoint: GET /v2/user/relationship/friends
func GetGlobalLeaderboardForMode ¶
GetGlobalLeaderboardForMode Retrieves the global leaderboard for a given game mode Endpoint: GET /v2/leaderboard/global?mode=&page=
func GetGlobalScoresForMap ¶
GetGlobalScoresForMap Retrieves the global scoreboard for a given map. Endpoint: GET: /v2/scores/:md5/global
func GetMapMods ¶
GetMapMods Gets mods for a given map Endpoint: GET /v2/maps/:id/mods
func GetMapsetById ¶
GetMapsetById Retrieves a mapset from the database by its id Endpoint: GET /v2/mapset/:id
func GetMapsetOnlineOffsets ¶
GetMapsetOnlineOffsets Retrieves online offsets for all ranked mapsets Endpoint: GET /v2/mapset/offsets
func GetMapsetsSearch ¶
GetMapsetsSearch Gets a list of mapsets that match a search query Endpoint: GET /v2/mapsets/search
func GetModifierScoresForMap ¶
GetModifierScoresForMap Retrieves modifier scores for a given map Endpoint: GET v2/scores/:md5/mods/:mods
func GetMultiplayerGame ¶
GetMultiplayerGame Gets an individual multiplayer game Endpoint: GET /v2/multiplayer/games/:id
func GetMusicArtists ¶
GetMusicArtists Returns all music artists Endpoint: GET /artists
func GetOrderItemById ¶
GetOrderItemById \Retrieves an individual order item by its id Endpoint: GET /v2/items/:id
func GetPinnedScoresForMode ¶
GetPinnedScoresForMode Gets a user's pinned scores for a given game mode Endpoint: GET /v2/user/:id/scores/:mode/pinned
func GetPlaylist ¶
GetPlaylist Gets an individual playlist Endpoint: GET /v2/playlists/:id
func GetPlaylistContainsMap ¶
GetPlaylistContainsMap Returns if a playlist contains an individual map id Endpoint: /v2/playlists/:id/contains/:map_id
func GetRankedMapsetIds ¶
GetRankedMapsetIds Retrieves the list of ranked mapset ids Endpoint: GET /v2/mapset/ranked
func GetRankingQueue ¶
GetRankingQueue Retrieves the ranking queue for a given mode Endpoint: /v2/ranking/queue/mode/:mode
func GetRankingQueueComments ¶
GetRankingQueueComments Returns all of the comments for a mapset in the ranking queue Endpoint: GET /v2/ranking/queue/:id/comments
func GetRankingQueueConfig ¶
GetRankingQueueConfig Returns the vote/denial configuration for the ranking queue
func GetRankingQueueMapset ¶
GetRankingQueueMapset Gets a single mapset in the ranking queue Endpoint: GET /v2/ranking/queue/:id
func GetRankingSupervisorActions ¶
GetRankingSupervisorActions Retrieves ranking supervisor actions between a given time frame Endpoint: GET /ranking/queue/supervisors/actions?start=&end=
func GetRateScoresForMap ¶
GetRateScoresForMap Retrieves rate scores for a given map Endpoint: GET v2/scores/:md5/rate/:mods
func GetRecentMultiplayerGames ¶
GetRecentMultiplayerGames Retrieves the most recent multiplayer games from the database Endpoint: GET /v2/multiplayer/games
func GetServerStats ¶
GetServerStats Retrieves statistics about Quaver Endpoint: /v2/server/stats
func GetSingleMusicArtist ¶
GetSingleMusicArtist Retrieves a single music artist by id Endpoint: GET /artists/:id
func GetTeamMembers ¶
GetTeamMembers Retrieves users in the Quaver team along with contributors and donators Endpoint: /v2/user/team/members
func GetTotalHitsLeaderboard ¶
GetTotalHitsLeaderboard Retrieves the total hits leaderboard for a given game mode Endpoint: GET /v2/leaderboard/hits?mode=&page=
func GetUserAboutMe ¶
GetUserAboutMe Retrieves a user's about me / userpage Endpoint: GET /v2/user/:id/aboutme
func GetUserAchievements ¶
GetUserAchievements Returns a list of achievements that a user has locked/unlocked Endpoint: GET /v2/user/:id/achievements
func GetUserActivity ¶
GetUserActivity Gets the user's recent activity Endpoint: GET /v2/user/:id/activity
func GetUserApplication ¶
GetUserApplication Returns a single user application Endpoint: GET /v2/developers/applications/:id
func GetUserApplications ¶
GetUserApplications Returns a users active applications Endpoint: GET /v2/developers/applications
func GetUserBadges ¶
GetUserBadges Gets a user's profile badges Endpoint: GET /v2/user/:id/badges
func GetUserBestScoresForMode ¶
GetUserBestScoresForMode Gets the user's best scores for a given game mode Endpoint: /v2/user/:id/scores/:mode/best
func GetUserFirstPlaceScoresForMode ¶
GetUserFirstPlaceScoresForMode Gets a user's first place scores for a given game mode Endpoint: /v2/user/:id/scores/:mode/firstplace
func GetUserFreeTrialDonatorOrder ¶
GetUserFreeTrialDonatorOrder Retrieves a user's free trial donator order if they've had one before
func GetUserGradesForMode ¶
GetUserGradesForMode Gets a user's scores with a particular grade Endpoint: GET /v2/user/:id/scores/:mode/grade/:grade
func GetUserMapsets ¶
GetUserMapsets Gets a user's uploaded mapsets Endpoint: GET /v2/user/:id/mapsets
func GetUserMostPlayedMaps ¶
GetUserMostPlayedMaps Gets a user's most played maps Endpoint: /v2/user/:id/mostplayed
func GetUserNotifications ¶
GetUserNotifications Gets a user's notification Endpoint /v2/notifications
func GetUserOrders ¶
GetUserOrders Gets a user's completed orders. Endpoint: GET /v2/orders
func GetUserPendingClanInvites ¶
GetUserPendingClanInvites Retrieves all pending clan invites for the user Endpoint: GET /v2/clan/invites
func GetUserPersonalBestScoreAll ¶
GetUserPersonalBestScoreAll Retrieves the personal best (ALL lb) score on a map for a user Endpoint: GET /v2/scores/:md5/:user_id/all
func GetUserPersonalBestScoreGlobal ¶
GetUserPersonalBestScoreGlobal Retrieves the personal best score on a map for a user Endpoint: GET /v2/scores/:md5/:user_id/global
func GetUserPersonalBestScoreMods ¶
GetUserPersonalBestScoreMods Retrieves the personal best modifier score on a map for a user Endpoint: GET /v2/scores/:md5/:user_id/mods/:mods
func GetUserPersonalBestScoreRate ¶
GetUserPersonalBestScoreRate Retrieves the personal best rate score on a map for a user Endpoint: GET /v2/scores/:md5/:user_id/rate/:mods
func GetUserPlaylists ¶
GetUserPlaylists Returns a user's created playlists Endpoint: /v2/user/:id/playlists
func GetUserRankStatisticsForMode ¶
GetUserRankStatisticsForMode Gets a user's rank statistics for a given game mode Endpoint: GET /v2/user/:id/statistics/:mode/rank
func GetUserRecentScoresForMode ¶
GetUserRecentScoresForMode Gets the user's recent scores for a given game mode Endpoint: /v2/user/:id/scores/:mode/recent
func GetUserScoresForClanScore ¶
GetUserScoresForClanScore Retrieves all individual scores that make up a clan score Endpoint: /v2/clan/scores/:id
func GetVirtualReplayPlayerOutput ¶
GetVirtualReplayPlayerOutput Plays the virtual replay player & returns the output Endpoint: GET /v2/scores/:id/stats
func GetWeeklyMostPlayedMapsets ¶
GetWeeklyMostPlayedMapsets Gets the most played mapsets of the week Endpoint: GET /v2/server/stats/mostplayed
func HandleMapsetSubmission ¶
HandleMapsetSubmission Handles the uploading/updating of a mapset archive (.qp) file Endpoint: POST /v2/mapset
func HandleStripeWebhook ¶
HandleStripeWebhook Handles an incoming stripe webhook POST: /v2/orders/stripe/webhook
func InitiateSteamDonatorTransaction ¶
InitiateSteamDonatorTransaction Initiates a transaction for Steam donator Endpoint: POST /v2/orders/steam/initiate/donation
func InitiateStripeDonatorCheckoutSession ¶
InitiateStripeDonatorCheckoutSession Initiates a stripe checkout session for donator Endpoint: POST /v2/orders/stripe/initiate/donation
func InsertMusicArtist ¶
InsertMusicArtist Creates a new music artists Endpoint: POST /artists
func InsertOrUpdateMap ¶
InsertOrUpdateMap Inserts/Updates a map in the database
func InviteUserToClan ¶
InviteUserToClan Invites a user to the clan Endpoint: POST /v2/clan/invite
func IsUsernameAvailable ¶
IsUsernameAvailable Returns if a username is available for a user to take Endpoint: GET /v2/user/profile/username/available?name=
func KickClanMember ¶
KickClanMember Kicks a member from the clan POST /v2/clan/kick/:user_id
func MarkAllNotificationsAsRead ¶
MarkAllNotificationsAsRead Marks all notifications from a user as read POST: /v2/notifications/all/read
func MarkMapsetAsExplicit ¶
MarkMapsetAsExplicit Marks a mapset as explicit POST /v2/mapset/:id/explicit
func MarkMapsetAsNotExplicit ¶
MarkMapsetAsNotExplicit Marks a mapsets as not explicit POST /v2/mapset/:id/unexplicit
func MarkUserNotificationAsRead ¶
MarkUserNotificationAsRead Marks an individual notification as read Endpoint: POST /v2/notifications/:id/read
func MarkUserNotificationAsUnread ¶
MarkUserNotificationAsUnread Marks an individual notification as unread Endpoint: POST /v2/notifications/:id/unread
func ModifyStripeSubscription ¶
ModifyStripeSubscription Returns a link so the user can modify their subscription Endpoint: GET /v2/orders/stripe/subscriptions/modify
func OnHoldRankingQueueMapset ¶
OnHoldRankingQueueMapset On-holds a mapset from the ranking queue Endpoint: POST /v2/ranking/queue/:id/hold
func RegisterNewUser ¶
RegisterNewUser Registers a new user account Endpoint: POST /v2/user
func RemoveFriend ¶
RemoveFriend Removes a friend from the logged-in users friend's list Endpoint: POST /v2/user/:id/relationship/delete
func RemoveFromRankingQueue ¶
RemoveFromRankingQueue Allows a user to remove their mapset from the ranking queue (self deny) Endpoint: POST /v2/ranking/queue/:id/remove
func RemoveMapFromPlaylist ¶
RemoveMapFromPlaylist Removes a map from a playlist Endpoint: /v2/playlist/:id/remove/:map_id
func RemovePinnedScore ¶
RemovePinnedScore Removes a user's pinned score Endpoint: POST /v2/scores/:id/unpin
func ResetApplicationSecret ¶
ResetApplicationSecret Resets the secret of an application Endpoint: POST /v2/developers/applications/:id/secret
func SearchPlaylists ¶
SearchPlaylists Searches for playlists by name/creator username Endpoint: /v2/playlists/search?query=
func SearchUsers ¶
SearchUsers Searches for users by username and returns them Endpoint: /v2/user/search/:name
func SortMusicArtistAlbums ¶
SortMusicArtistAlbums Sorts music artist albums Endpoints: POST: /v2/artists/:id/album/sort
func SortMusicArtistSongs ¶
SortMusicArtistSongs Sort's an album's songs Endpoint: POST /v2/artists/album/:id/song/sort
func SortMusicArtists ¶
SortMusicArtists Custom sort music artists Endpoint: POST /v2/artists/sort
func SortPinnedScores ¶
SortPinnedScores Sorts pins scores by a custom sort order Endpoint: POST /v2/scores/pinned/:mode/sort
func SubmitMapMod ¶
SubmitMapMod Inserts a map mod to the db Endpoint: POST /v2/maps/:id/mods
func SubmitMapModComment ¶
SubmitMapModComment Submits a comment for a map mod Endpoint: POST /v2/maps/:id/mods/:mod_id/comment
func SubmitMapsetToRankingQueue ¶
SubmitMapsetToRankingQueue Submits a mapsets to the ranking queue Endpoint: POST /v2/ranking/queue/:id/submit
func TransferClanOwnership ¶
TransferClanOwnership Transfers ownership of the clan to another member. Endpoint: POST /v2/clan/transfer/:user_id
func UpdateApplication ¶
UpdateApplication Updates an application's data Endpoint: POST /v2/developers/applications/:id
func UpdateClan ¶
UpdateClan Updates data about a clan Endpoint: PATCH /v2/clan/:id
func UpdateElasticSearchMapset ¶
UpdateElasticSearchMapset Updates a mapset in elastic search Endpoint: GET /v2/mapset/:id/elastic
func UpdateMapModStatus ¶
UpdateMapModStatus Updates the status of a map mod Endpoint: POST /v2/maps/:id/mods/:mod_id/status
func UpdateMapsetDescription ¶
UpdateMapsetDescription Updates the description of a given mapset Endpoint: PATCH /v2/mapset/:id/description
func UpdateMusicArtist ¶
UpdateMusicArtist Updates the name, description, and links for a music artists Endpoint: POST /artists/:id
func UpdateMusicArtistAlbum ¶
UpdateMusicArtistAlbum Updates a music artist album Endpoint: POST /v2/artists/album/:id
func UpdateMusicArtistSong ¶
UpdateMusicArtistSong Updates metadata for a given song Endpoint: POST /v2/artists/song/:id
func UpdatePlaylist ¶
UpdatePlaylist Updates a playlists name/description Endpoint: POST /v2/playlists/:id/update
func UpdateUserAboutMe ¶
UpdateUserAboutMe Updates a user's about me Endpoint: POST /v2/user/profile/aboutme
func UpdateUserAccentColor ¶
UpdateUserAccentColor Updates a user's accent color Endpoint: POST /v2/user/:id/accent
func UpdateUserDiscordId ¶
UpdateUserDiscordId Updates a user's discord id Endpoint: POST /v2/user/:id/discord
func UploadClanAvatar ¶
UploadClanAvatar Handles the uploading of a clan avatar Endpoint: /v2/clan/avatar
func UploadClanBanner ¶
UploadClanBanner Handles the uploading of a clan banner Endpoint: /v2/clan/banner
func UploadMultiplayerMapset ¶
UploadMultiplayerMapset Uploads a multiplayer map to be shared. Endpoint: POST /v2/download/multiplayer/:id/upload
func UploadMusicArtistAlbumCover ¶
UploadMusicArtistAlbumCover Uploads an album cover for an album Endpoint: POST /v2/artists/album/:id/cover
func UploadMusicArtistAvatar ¶
UploadMusicArtistAvatar Uploads a music artist's avatar Endpoint: POST /v2/artists/:id/avatar
func UploadMusicArtistBanner ¶
UploadMusicArtistBanner Uploads a music artist's banner Endpoint: POST /v2/artists/:id/banner
func UploadMusicArtistSong ¶
UploadMusicArtistSong Uploads a new song for a music artist's album Endpoint: POST /v2/artists/album/:id/song
func UploadPlaylistCover ¶
UploadPlaylistCover Uploads a playlist cover Endpoint: POST /v2/playlists/:id/cover
func UploadUnsubmittedMap ¶
UploadUnsubmittedMap Uploads an unsubmitted map to azure for donator leaderboards. Endpoint: POST /v2/map
func UploadUserProfileCover ¶
UploadUserProfileCover Handles the uploading of a user's profile cover Endpoint: POST /v2/user/profile/cover
func VoteForRankingQueueMapset ¶
VoteForRankingQueueMapset Adds a vote for a mapset in the ranking queue Endpoint: POST /v2/ranking/queue/:id/vote
type DonatorPaymentMethod ¶
type DonatorPricing ¶
type DonatorPricing struct { Steam DonatorPaymentMethod `json:"steam"` Stripe DonatorPaymentMethod `json:"stripe"` }
type MusicArtistImage ¶
type MusicArtistImage int
const ( MusicArtistImageAvatar MusicArtistImage = iota MusicArtistImageBanner )
Source Files ¶
- api_error.go
- applications.go
- chat_messages.go
- clan_activity.go
- clan_images.go
- clan_invites.go
- clan_members.go
- clan_scores.go
- clans.go
- crash_logs.go
- download.go
- game_builds.go
- handlers.go
- leaderboard.go
- map_mods.go
- maps.go
- mapset_submission.go
- mapsets.go
- most_played_maps.go
- multiplayer.go
- multiplayer_map_share.go
- music_artists.go
- music_artists_albums.go
- music_artists_images.go
- music_artists_songs.go
- order_items.go
- orders.go
- orders_steam.go
- orders_stripe.go
- playlists.go
- ranking.go
- ranking_actions.go
- ranking_comments.go
- ranking_supervisors.go
- register.go
- replay_player.go
- scoreboard.go
- scores.go
- server_stats.go
- team.go
- unsubmitted_maps.go
- user_achievements.go
- user_activity.go
- user_badges.go
- user_images.go
- user_notifications.go
- user_relationships.go
- user_statistics.go
- username_changes.go
- users.go