Documentation
¶
Overview ¶
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by unknown module path version unknown version DO NOT EDIT.
Index ¶
- Constants
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type Activities
- type Activity
- type ActivitySplit
- type ActivitySplitScore
- type Contest
- type ContestBase
- type ContestConfigurationOptions
- type ContestCreateJSONRequestBody
- type ContestFetchLeaderboardParams
- type ContestListLogsParams
- type ContestListParams
- type ContestProfileActivity
- type ContestProfileActivityRow
- type ContestProfileScores
- type ContestRegistration
- type ContestRegistrationReference
- type ContestRegistrationUpsertJSONBody
- type ContestRegistrationUpsertJSONRequestBody
- type ContestRegistrations
- type ContestSummary
- type ContestView
- type Contests
- type EchoRouter
- type FetchLeaderboardForYearParams
- type FetchLeaderboardGlobalParams
- type Language
- type Languages
- type Leaderboard
- type LeaderboardEntry
- type Log
- type LogConfigurationOptions
- type LogCreateJSONBody
- type LogCreateJSONRequestBody
- type Logs
- type PaginatedList
- type ProfileListLogsParams
- type ProfileScores
- type Score
- type Scores
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) ContestCreate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestCreatePermissionCheck(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestFetchLeaderboard(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestFetchSummary(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestFindByID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestFindLatestOfficial(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestFindOngoingRegistrations(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestFindRegistration(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestGetConfigurations(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestList(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestListLogs(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestProfileFetchActivity(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestProfileFetchScores(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ContestRegistrationUpsert(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) FetchLeaderboardForYear(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) FetchLeaderboardGlobal(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) LogCreate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) LogDeleteByID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) LogFindByID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) LogGetConfigurations(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) Ping(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ProfileFindByUserID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ProfileListLogs(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ProfileYearlyActivityByUserID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ProfileYearlyActivitySplitByUserID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ProfileYearlyContestRegistrationsByUserID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ProfileYearlyScoresByUserID(ctx echo.Context) error
- type Tag
- type Tags
- type Unit
- type Units
- type UserActivity
- type UserActivityScore
- type UserProfile
Constants ¶
const (
CookieAuthScopes = "cookieAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type Activities ¶
type Activities struct {
Activities []Activity `json:"activities"`
}
Activities defines model for Activities.
type Activity ¶
type Activity struct { Default *bool `json:"default,omitempty"` Id int32 `json:"id"` Name string `json:"name"` }
Activity defines model for Activity.
type ActivitySplit ¶
type ActivitySplit struct {
Activities []ActivitySplitScore `json:"activities"`
}
ActivitySplit defines model for ActivitySplit.
type ActivitySplitScore ¶
type ActivitySplitScore struct { ActivityId int `json:"activity_id"` ActivityName string `json:"activity_name"` Score float32 `json:"score"` }
ActivitySplitScore defines model for ActivitySplitScore.
type Contest ¶
type Contest struct { ActivityTypeIdAllowList []int32 `json:"activity_type_id_allow_list"` ContestEnd openapi_types.Date `json:"contest_end"` ContestStart openapi_types.Date `json:"contest_start"` CreatedAt *time.Time `json:"created_at,omitempty"` Deleted *bool `json:"deleted,omitempty"` Description *string `json:"description,omitempty"` Id *openapi_types.UUID `json:"id,omitempty"` LanguageCodeAllowList []string `json:"language_code_allow_list"` Official bool `json:"official"` OwnerUserDisplayName *string `json:"owner_user_display_name,omitempty"` OwnerUserId *openapi_types.UUID `json:"owner_user_id,omitempty"` Private bool `json:"private"` RegistrationEnd openapi_types.Date `json:"registration_end"` Title string `json:"title"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
Contest defines model for Contest.
type ContestBase ¶
type ContestBase struct { ContestEnd openapi_types.Date `json:"contest_end"` ContestStart openapi_types.Date `json:"contest_start"` CreatedAt *time.Time `json:"created_at,omitempty"` Deleted *bool `json:"deleted,omitempty"` Description *string `json:"description,omitempty"` Id *openapi_types.UUID `json:"id,omitempty"` Official bool `json:"official"` OwnerUserDisplayName *string `json:"owner_user_display_name,omitempty"` OwnerUserId *openapi_types.UUID `json:"owner_user_id,omitempty"` Private bool `json:"private"` RegistrationEnd openapi_types.Date `json:"registration_end"` Title string `json:"title"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
ContestBase defines model for ContestBase.
type ContestConfigurationOptions ¶
type ContestConfigurationOptions struct { Activities []Activity `json:"activities"` CanCreateOfficialRound bool `json:"can_create_official_round"` Languages []Language `json:"languages"` }
ContestConfigurationOptions defines model for ContestConfigurationOptions.
type ContestCreateJSONRequestBody ¶
type ContestCreateJSONRequestBody = Contest
ContestCreateJSONRequestBody defines body for ContestCreate for application/json ContentType.
type ContestFetchLeaderboardParams ¶
type ContestFetchLeaderboardParams struct { PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"` Page *int `form:"page,omitempty" json:"page,omitempty"` LanguageCode *string `form:"language_code,omitempty" json:"language_code,omitempty"` ActivityId *int `form:"activity_id,omitempty" json:"activity_id,omitempty"` }
ContestFetchLeaderboardParams defines parameters for ContestFetchLeaderboard.
type ContestListLogsParams ¶
type ContestListLogsParams struct { IncludeDeleted *bool `form:"include_deleted,omitempty" json:"include_deleted,omitempty"` PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"` Page *int `form:"page,omitempty" json:"page,omitempty"` UserId *openapi_types.UUID `form:"user_id,omitempty" json:"user_id,omitempty"` }
ContestListLogsParams defines parameters for ContestListLogs.
type ContestListParams ¶
type ContestListParams struct { PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"` Page *int `form:"page,omitempty" json:"page,omitempty"` IncludeDeleted *bool `form:"include_deleted,omitempty" json:"include_deleted,omitempty"` Official *bool `form:"official,omitempty" json:"official,omitempty"` UserId *openapi_types.UUID `form:"user_id,omitempty" json:"user_id,omitempty"` }
ContestListParams defines parameters for ContestList.
type ContestProfileActivity ¶
type ContestProfileActivity struct {
Rows []ContestProfileActivityRow `json:"rows"`
}
ContestProfileActivity defines model for ContestProfileActivity.
type ContestProfileActivityRow ¶
type ContestProfileActivityRow struct { Date openapi_types.Date `json:"date"` LanguageCode string `json:"language_code"` Score float32 `json:"score"` }
ContestProfileActivityRow defines model for ContestProfileActivityRow.
type ContestProfileScores ¶
type ContestProfileScores struct { OverallScore float32 `json:"overall_score"` Registration ContestRegistration `json:"registration"` Scores Scores `json:"scores"` }
ContestProfileScores defines model for ContestProfileScores.
type ContestRegistration ¶
type ContestRegistration struct { Contest *ContestView `json:"contest,omitempty"` ContestId openapi_types.UUID `json:"contest_id"` Id *openapi_types.UUID `json:"id,omitempty"` Languages []Language `json:"languages"` UserDisplayName string `json:"user_display_name"` UserId openapi_types.UUID `json:"user_id"` }
ContestRegistration defines model for ContestRegistration.
type ContestRegistrationReference ¶
type ContestRegistrationReference struct { ContestEnd openapi_types.Date `json:"contest_end"` ContestId openapi_types.UUID `json:"contest_id"` RegistrationId openapi_types.UUID `json:"registration_id"` Title string `json:"title"` }
ContestRegistrationReference defines model for ContestRegistrationReference.
type ContestRegistrationUpsertJSONBody ¶
type ContestRegistrationUpsertJSONBody struct {
LanguageCodes []string `json:"language_codes"`
}
ContestRegistrationUpsertJSONBody defines parameters for ContestRegistrationUpsert.
type ContestRegistrationUpsertJSONRequestBody ¶
type ContestRegistrationUpsertJSONRequestBody ContestRegistrationUpsertJSONBody
ContestRegistrationUpsertJSONRequestBody defines body for ContestRegistrationUpsert for application/json ContentType.
type ContestRegistrations ¶
type ContestRegistrations struct { // NextPageToken is empty if there's no next page NextPageToken string `json:"next_page_token"` Registrations []ContestRegistration `json:"registrations"` TotalSize int `json:"total_size"` }
ContestRegistrations defines model for ContestRegistrations.
type ContestSummary ¶
type ContestSummary struct { LanguageCount int `json:"language_count"` ParticipantCount int `json:"participant_count"` TotalScore float32 `json:"total_score"` }
ContestSummary defines model for ContestSummary.
type ContestView ¶
type ContestView struct { AllowedActivities []Activity `json:"allowed_activities"` AllowedLanguages []Language `json:"allowed_languages"` ContestEnd openapi_types.Date `json:"contest_end"` ContestStart openapi_types.Date `json:"contest_start"` CreatedAt *time.Time `json:"created_at,omitempty"` Deleted *bool `json:"deleted,omitempty"` Description *string `json:"description,omitempty"` Id *openapi_types.UUID `json:"id,omitempty"` Official bool `json:"official"` OwnerUserDisplayName *string `json:"owner_user_display_name,omitempty"` OwnerUserId *openapi_types.UUID `json:"owner_user_id,omitempty"` Private bool `json:"private"` RegistrationEnd openapi_types.Date `json:"registration_end"` Title string `json:"title"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
ContestView defines model for ContestView.
type Contests ¶
type Contests struct { Contests []Contest `json:"contests"` // NextPageToken is empty if there's no next page NextPageToken string `json:"next_page_token"` TotalSize int `json:"total_size"` }
Contests defines model for Contests.
type EchoRouter ¶
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type FetchLeaderboardForYearParams ¶
type FetchLeaderboardForYearParams struct { PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"` Page *int `form:"page,omitempty" json:"page,omitempty"` LanguageCode *string `form:"language_code,omitempty" json:"language_code,omitempty"` ActivityId *int `form:"activity_id,omitempty" json:"activity_id,omitempty"` }
FetchLeaderboardForYearParams defines parameters for FetchLeaderboardForYear.
type FetchLeaderboardGlobalParams ¶
type FetchLeaderboardGlobalParams struct { PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"` Page *int `form:"page,omitempty" json:"page,omitempty"` LanguageCode *string `form:"language_code,omitempty" json:"language_code,omitempty"` ActivityId *int `form:"activity_id,omitempty" json:"activity_id,omitempty"` }
FetchLeaderboardGlobalParams defines parameters for FetchLeaderboardGlobal.
type Language ¶
type Language struct { // Code In ISO-639-3 https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Languages/List_of_ISO_639-3_language_codes_(2019) Code string `json:"code"` Name string `json:"name"` }
Language defines model for Language.
type Languages ¶
type Languages struct {
Languages []Language `json:"languages"`
}
Languages defines model for Languages.
type Leaderboard ¶
type Leaderboard struct { Entries []LeaderboardEntry `json:"entries"` // NextPageToken is empty if there's no next page NextPageToken string `json:"next_page_token"` TotalSize int `json:"total_size"` }
Leaderboard defines model for Leaderboard.
type LeaderboardEntry ¶
type LeaderboardEntry struct { IsTie bool `json:"is_tie"` Rank int `json:"rank"` Score float32 `json:"score"` UserDisplayName string `json:"user_display_name"` UserId openapi_types.UUID `json:"user_id"` }
LeaderboardEntry defines model for LeaderboardEntry.
type Log ¶
type Log struct { Activity Activity `json:"activity"` Amount float32 `json:"amount"` CreatedAt time.Time `json:"created_at"` Deleted bool `json:"deleted"` Description *string `json:"description,omitempty"` Id openapi_types.UUID `json:"id"` Language Language `json:"language"` Modifier float32 `json:"modifier"` Registrations *[]ContestRegistrationReference `json:"registrations,omitempty"` Score float32 `json:"score"` Tags []string `json:"tags"` UnitName string `json:"unit_name"` UserDisplayName *string `json:"user_display_name,omitempty"` UserId openapi_types.UUID `json:"user_id"` }
Log defines model for Log.
type LogConfigurationOptions ¶
type LogConfigurationOptions struct { Activities []Activity `json:"activities"` Languages []Language `json:"languages"` Tags []Tag `json:"tags"` Units []Unit `json:"units"` }
LogConfigurationOptions defines model for LogConfigurationOptions.
type LogCreateJSONBody ¶
type LogCreateJSONBody struct { ActivityId int32 `json:"activity_id"` Amount float32 `json:"amount"` Description *string `json:"description,omitempty"` LanguageCode string `json:"language_code"` RegistrationIds []openapi_types.UUID `json:"registration_ids"` Tags []string `json:"tags"` UnitId openapi_types.UUID `json:"unit_id"` }
LogCreateJSONBody defines parameters for LogCreate.
type LogCreateJSONRequestBody ¶
type LogCreateJSONRequestBody LogCreateJSONBody
LogCreateJSONRequestBody defines body for LogCreate for application/json ContentType.
type Logs ¶
type Logs struct { Logs []Log `json:"logs"` // NextPageToken is empty if there's no next page NextPageToken string `json:"next_page_token"` TotalSize int `json:"total_size"` }
Logs defines model for Logs.
type PaginatedList ¶
type PaginatedList struct { // NextPageToken is empty if there's no next page NextPageToken string `json:"next_page_token"` TotalSize int `json:"total_size"` }
PaginatedList defines model for PaginatedList.
type ProfileListLogsParams ¶
type ProfileListLogsParams struct { IncludeDeleted *bool `form:"include_deleted,omitempty" json:"include_deleted,omitempty"` PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"` Page *int `form:"page,omitempty" json:"page,omitempty"` }
ProfileListLogsParams defines parameters for ProfileListLogs.
type ProfileScores ¶
type ProfileScores struct { OverallScore float32 `json:"overall_score"` Scores Scores `json:"scores"` }
ProfileScores defines model for ProfileScores.
type Score ¶
type Score struct { LanguageCode string `json:"language_code"` LanguageName *string `json:"language_name,omitempty"` Score float32 `json:"score"` }
Score defines model for Score.
type ServerInterface ¶
type ServerInterface interface { // Lists all the contests, paginated // (GET /contests) ContestList(ctx echo.Context, params ContestListParams) error // Creates a new contest // (POST /contests) ContestCreate(ctx echo.Context) error // Fetches the configuration options for a new contest // (GET /contests/configuration-options) ContestGetConfigurations(ctx echo.Context) error // Check if user has permission to create a new contest // (GET /contests/create-permissions) ContestCreatePermissionCheck(ctx echo.Context) error // Fetches the latest official contest // (GET /contests/latest-official) ContestFindLatestOfficial(ctx echo.Context) error // Fetches all the ongoing contest registrations of the logged in user, always in a single page // (GET /contests/ongoing-registrations) ContestFindOngoingRegistrations(ctx echo.Context) error // Fetches a contest by id // (GET /contests/{id}) ContestFindByID(ctx echo.Context, id openapi_types.UUID) error // Fetches the leaderboard for a contest // (GET /contests/{id}/leaderboard) ContestFetchLeaderboard(ctx echo.Context, id openapi_types.UUID, params ContestFetchLeaderboardParams) error // Lists the logs attached to a contest // (GET /contests/{id}/logs) ContestListLogs(ctx echo.Context, id openapi_types.UUID, params ContestListLogsParams) error // Fetches the activity of a user profile in a contest // (GET /contests/{id}/profile/{user_id}/activity) ContestProfileFetchActivity(ctx echo.Context, id openapi_types.UUID, userId openapi_types.UUID) error // Fetches the scores of a user profile in a contest // (GET /contests/{id}/profile/{user_id}/scores) ContestProfileFetchScores(ctx echo.Context, id openapi_types.UUID, userId openapi_types.UUID) error // Fetches a contest registration if it exists // (GET /contests/{id}/registration) ContestFindRegistration(ctx echo.Context, id openapi_types.UUID) error // Creates or updates a registration for a contest // (POST /contests/{id}/registration) ContestRegistrationUpsert(ctx echo.Context, id openapi_types.UUID) error // Fetches the summary for a contest // (GET /contests/{id}/summary) ContestFetchSummary(ctx echo.Context, id openapi_types.UUID) error // Fetches the global leaderboard // (GET /leaderboard/global) FetchLeaderboardGlobal(ctx echo.Context, params FetchLeaderboardGlobalParams) error // Fetches the leaderboard for a given year // (GET /leaderboard/yearly/{year}) FetchLeaderboardForYear(ctx echo.Context, year int, params FetchLeaderboardForYearParams) error // Submits a new log // (POST /logs) LogCreate(ctx echo.Context) error // Fetches the configuration options for a log // (GET /logs/configuration-options) LogGetConfigurations(ctx echo.Context) error // Deletes a log by id // (DELETE /logs/{id}) LogDeleteByID(ctx echo.Context, id openapi_types.UUID) error // Fetches a log by id // (GET /logs/{id}) LogFindByID(ctx echo.Context, id openapi_types.UUID) error // Checks if service is responsive // (GET /ping) Ping(ctx echo.Context) error // Fetches a activity split summary of a user for a given year // (GET /users/{userId}/activity-split/{year}) ProfileYearlyActivitySplitByUserID(ctx echo.Context, userId openapi_types.UUID, year int) error // Fetches a activity summary of a user for a given year // (GET /users/{userId}/activity/{year}) ProfileYearlyActivityByUserID(ctx echo.Context, userId openapi_types.UUID, year int) error // Fetches the contest registrations of a user for a given year // (GET /users/{userId}/contest-registrations/{year}) ProfileYearlyContestRegistrationsByUserID(ctx echo.Context, userId openapi_types.UUID, year int) error // Fetches a profile of a user // (GET /users/{userId}/profile) ProfileFindByUserID(ctx echo.Context, userId openapi_types.UUID) error // Fetches the scores of a user for a given year // (GET /users/{userId}/scores/{year}) ProfileYearlyScoresByUserID(ctx echo.Context, userId openapi_types.UUID, year int) error // Lists the logs of a user // (GET /users/{user_id}/logs) ProfileListLogs(ctx echo.Context, userId openapi_types.UUID, params ProfileListLogsParams) error }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) ContestCreate ¶
func (w *ServerInterfaceWrapper) ContestCreate(ctx echo.Context) error
ContestCreate converts echo context to params.
func (*ServerInterfaceWrapper) ContestCreatePermissionCheck ¶
func (w *ServerInterfaceWrapper) ContestCreatePermissionCheck(ctx echo.Context) error
ContestCreatePermissionCheck converts echo context to params.
func (*ServerInterfaceWrapper) ContestFetchLeaderboard ¶
func (w *ServerInterfaceWrapper) ContestFetchLeaderboard(ctx echo.Context) error
ContestFetchLeaderboard converts echo context to params.
func (*ServerInterfaceWrapper) ContestFetchSummary ¶
func (w *ServerInterfaceWrapper) ContestFetchSummary(ctx echo.Context) error
ContestFetchSummary converts echo context to params.
func (*ServerInterfaceWrapper) ContestFindByID ¶
func (w *ServerInterfaceWrapper) ContestFindByID(ctx echo.Context) error
ContestFindByID converts echo context to params.
func (*ServerInterfaceWrapper) ContestFindLatestOfficial ¶
func (w *ServerInterfaceWrapper) ContestFindLatestOfficial(ctx echo.Context) error
ContestFindLatestOfficial converts echo context to params.
func (*ServerInterfaceWrapper) ContestFindOngoingRegistrations ¶
func (w *ServerInterfaceWrapper) ContestFindOngoingRegistrations(ctx echo.Context) error
ContestFindOngoingRegistrations converts echo context to params.
func (*ServerInterfaceWrapper) ContestFindRegistration ¶
func (w *ServerInterfaceWrapper) ContestFindRegistration(ctx echo.Context) error
ContestFindRegistration converts echo context to params.
func (*ServerInterfaceWrapper) ContestGetConfigurations ¶
func (w *ServerInterfaceWrapper) ContestGetConfigurations(ctx echo.Context) error
ContestGetConfigurations converts echo context to params.
func (*ServerInterfaceWrapper) ContestList ¶
func (w *ServerInterfaceWrapper) ContestList(ctx echo.Context) error
ContestList converts echo context to params.
func (*ServerInterfaceWrapper) ContestListLogs ¶
func (w *ServerInterfaceWrapper) ContestListLogs(ctx echo.Context) error
ContestListLogs converts echo context to params.
func (*ServerInterfaceWrapper) ContestProfileFetchActivity ¶
func (w *ServerInterfaceWrapper) ContestProfileFetchActivity(ctx echo.Context) error
ContestProfileFetchActivity converts echo context to params.
func (*ServerInterfaceWrapper) ContestProfileFetchScores ¶
func (w *ServerInterfaceWrapper) ContestProfileFetchScores(ctx echo.Context) error
ContestProfileFetchScores converts echo context to params.
func (*ServerInterfaceWrapper) ContestRegistrationUpsert ¶
func (w *ServerInterfaceWrapper) ContestRegistrationUpsert(ctx echo.Context) error
ContestRegistrationUpsert converts echo context to params.
func (*ServerInterfaceWrapper) FetchLeaderboardForYear ¶
func (w *ServerInterfaceWrapper) FetchLeaderboardForYear(ctx echo.Context) error
FetchLeaderboardForYear converts echo context to params.
func (*ServerInterfaceWrapper) FetchLeaderboardGlobal ¶
func (w *ServerInterfaceWrapper) FetchLeaderboardGlobal(ctx echo.Context) error
FetchLeaderboardGlobal converts echo context to params.
func (*ServerInterfaceWrapper) LogCreate ¶
func (w *ServerInterfaceWrapper) LogCreate(ctx echo.Context) error
LogCreate converts echo context to params.
func (*ServerInterfaceWrapper) LogDeleteByID ¶
func (w *ServerInterfaceWrapper) LogDeleteByID(ctx echo.Context) error
LogDeleteByID converts echo context to params.
func (*ServerInterfaceWrapper) LogFindByID ¶
func (w *ServerInterfaceWrapper) LogFindByID(ctx echo.Context) error
LogFindByID converts echo context to params.
func (*ServerInterfaceWrapper) LogGetConfigurations ¶
func (w *ServerInterfaceWrapper) LogGetConfigurations(ctx echo.Context) error
LogGetConfigurations converts echo context to params.
func (*ServerInterfaceWrapper) Ping ¶
func (w *ServerInterfaceWrapper) Ping(ctx echo.Context) error
Ping converts echo context to params.
func (*ServerInterfaceWrapper) ProfileFindByUserID ¶
func (w *ServerInterfaceWrapper) ProfileFindByUserID(ctx echo.Context) error
ProfileFindByUserID converts echo context to params.
func (*ServerInterfaceWrapper) ProfileListLogs ¶
func (w *ServerInterfaceWrapper) ProfileListLogs(ctx echo.Context) error
ProfileListLogs converts echo context to params.
func (*ServerInterfaceWrapper) ProfileYearlyActivityByUserID ¶
func (w *ServerInterfaceWrapper) ProfileYearlyActivityByUserID(ctx echo.Context) error
ProfileYearlyActivityByUserID converts echo context to params.
func (*ServerInterfaceWrapper) ProfileYearlyActivitySplitByUserID ¶
func (w *ServerInterfaceWrapper) ProfileYearlyActivitySplitByUserID(ctx echo.Context) error
ProfileYearlyActivitySplitByUserID converts echo context to params.
func (*ServerInterfaceWrapper) ProfileYearlyContestRegistrationsByUserID ¶
func (w *ServerInterfaceWrapper) ProfileYearlyContestRegistrationsByUserID(ctx echo.Context) error
ProfileYearlyContestRegistrationsByUserID converts echo context to params.
func (*ServerInterfaceWrapper) ProfileYearlyScoresByUserID ¶
func (w *ServerInterfaceWrapper) ProfileYearlyScoresByUserID(ctx echo.Context) error
ProfileYearlyScoresByUserID converts echo context to params.
type Tag ¶
type Tag struct { Id openapi_types.UUID `json:"id"` LogActivityId int `json:"log_activity_id"` Name string `json:"name"` }
Tag defines model for Tag.
type Unit ¶
type Unit struct { Id openapi_types.UUID `json:"id"` LanguageCode *string `json:"language_code,omitempty"` LogActivityId int `json:"log_activity_id"` Modifier float32 `json:"modifier"` Name string `json:"name"` }
Unit defines model for Unit.
type UserActivity ¶
type UserActivity struct { Scores []UserActivityScore `json:"scores"` TotalUpdates int `json:"total_updates"` }
UserActivity defines model for UserActivity.
type UserActivityScore ¶
type UserActivityScore struct { Date openapi_types.Date `json:"date"` Score float32 `json:"score"` }
UserActivityScore defines model for UserActivityScore.
type UserProfile ¶
type UserProfile struct { CreatedAt time.Time `json:"created_at"` DisplayName string `json:"display_name"` Id openapi_types.UUID `json:"id"` }
UserProfile defines model for UserProfile.