Documentation
¶
Index ¶
- type Assignment
- type Assignments
- type Client
- type Collection
- type CollectionBase
- type Option
- func WithAvailableAfter(t time.Time) Option
- func WithAvailableBefore(t time.Time) Option
- func WithAvailableLessons() Option
- func WithAvailableReviews() Option
- func WithBurned() Option
- func WithHidden() Option
- func WithIds(ids []int) Option
- func WithLevels(levels []int) Option
- func WithStage(stages []int) Option
- func WithSubjectIDs(ids []int) Option
- func WithSubjectTypes(types []string) Option
- func WithUnlocked() Option
- func WithUpdatedAfter(t time.Time) Option
- type Paginate
- type Resource
- type ResourceBase
- type Reviews
- type Shared
- type StudyMaterial
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
type Assignment struct {
Type string `json:"subject_type"`
Id int `json:"subject_id"`
Level int `json:"level"`
Stage int `json:"srs_stage"`
UnlockedAt time.Time `json:"unlocked_at"`
StartedAt time.Time `json:"started_at"`
PassedAt time.Time `json:"passed_at"`
BurnedAt time.Time `json:"burned_at"`
AvailableAt time.Time `json:"available_at"`
ResurrectedAt time.Time `json:"resurrected_at"`
}
type Assignments ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAssignment ¶
func (*Client) GetAssignments ¶
func (c *Client) GetAssignments(opts ...Option) (*Paginate[Assignment], error)
func (*Client) StartAssignment ¶
func (c *Client) StartAssignment(payload Assignments, id int, opts ...Option) (*Resource[Assignment], error)
type Collection ¶
type Collection[T any] struct { CollectionBase Data []struct { ResourceBase Data T `json:"data"` } `json:"data"` }
type CollectionBase ¶
type Option ¶
type Option func(*options) error
func WithAvailableAfter ¶
func WithAvailableBefore ¶
func WithAvailableLessons ¶
func WithAvailableLessons() Option
func WithAvailableReviews ¶
func WithAvailableReviews() Option
func WithBurned ¶
func WithBurned() Option
func WithHidden ¶
func WithHidden() Option
func WithLevels ¶
func WithSubjectIDs ¶
func WithSubjectTypes ¶
func WithUnlocked ¶
func WithUnlocked() Option
func WithUpdatedAfter ¶
type Paginate ¶
type Paginate[T any] struct { Data Collection[T] // contains filtered or unexported fields }
type Resource ¶
type Resource[T any] struct { ResourceBase Data T `json:"data"` }
type ResourceBase ¶
type ResourceBase struct {
Id int `json:"id"`
}
type StudyMaterial ¶
type User ¶
type User struct {
User struct {
Preferences struct {
LessonsAutoplayAudio bool `json:"lessons_autoplay_audio"`
LessonsBatchSize int `json:"lessons_batch_size"`
LessonsPresentationOrder string `json:"lessons_presentation_order"`
ReviewsAutoplayAudio bool `json:"reviews_autoplay_audio"`
ReviewsDisplaySrsIndicator bool `json:"reviews_display_srs_indicator"`
} `json:"preferences"`
} `json:"user"`
}
Click to show internal directories.
Click to hide internal directories.