Documentation ¶
Index ¶
Constants ¶
View Source
const ( LanguageIDPathParam = "languageID" GetActivityEndpoint = "/{" + LanguageIDPathParam + "}/study-stats/" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Activity ¶
type Activity struct { ActivityApple string `json:"activityApple"` Coints uint `json:"coins"` Language string `json:"string"` DailyGoal uint `json:"dailyGoal"` StreakDays uint `json:"streakDays"` ActivityLevel ActivityLevel `json:"activityLevel"` DailyMetric string `json:"dailyMetric"` DailyScores DailyScores `json:"dailyScores"` KnownWords uint `json:"knownWords"` IsStreakBroken bool `json:"isStreakBroken"` }
type ActivityLevel ¶
type ActivityQuery ¶
type ActivityQuery struct { rest.GetDummyRequester Language string }
func (ActivityQuery) ToPathParameter ¶
func (a ActivityQuery) ToPathParameter() (map[string]string, error)
type DailyScore ¶
type DailyScore struct { Date entities.DateOnly `json:"date"` DayOfWeek string `json:"dayOfWeek"` ActivityLevel ActivityLevel `json:"activityLevel"` Score uint `json:"score"` }
type DailyScores ¶
type DailyScores []DailyScore
type GetActivityRepoAction ¶
type GetActivityRepoAction interface {
GetActivity(context.Context, ActivityQuery) (Activity, error)
}
type GetActivityService ¶
type GetActivityService interface {
GetActivity(context.Context, ActivityQuery) (Activity, error)
}
type Repo ¶
type Repo interface { GetActivityRepoAction }
Click to show internal directories.
Click to hide internal directories.