Documentation
¶
Index ¶
Constants ¶
View Source
const GetContextsEndpoint = "contexts/"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { Identifier uint `json:"pk" example:"5857878"` URL string `json:"url" example:"https://www.lingq.com/api/v2/contexts/{context_identifier}/"` Language language.Language `json:"language"` Intense string `json:"intense" example:"insane"` StreakDays uint `json:"streak_days" example:"20"` AppleLevel int `json:"apple_level" example:"5"` }
type ContextRes ¶
type ContextsQuery ¶
type ContextsQuery struct { rest.GetDummyRequester Identifier uint StreakDays uint Language language.LanguagesQuery Intense string // Casual, Steady, Intense, Insane }
type GetContextsRepoAction ¶
type GetContextsRepoAction interface {
GetContexts(context.Context, ContextsQuery) (ContextRes, error)
}
type GetContextsService ¶
type GetContextsService interface {
GetContexts(context.Context, ContextsQuery) (Contexts, error)
}
type Repo ¶
type Repo interface { GetContextsRepoAction }
Click to show internal directories.
Click to hide internal directories.