Versions in this module Expand all Collapse all v0 v0.1.6 Oct 5, 2023 Changes in this version type Client + RegionID int64 type CurrentInfo + RegionID int64 + SchoolName string v0.1.5 Oct 5, 2023 v0.1.4 Oct 5, 2023 Changes in this version type CurrentInfo + Class string v0.1.3 Nov 17, 2022 Changes in this version type Client + func (cli *Client) GetCurrentQuarter() (result string) v0.1.2 Dec 20, 2021 Changes in this version type Lperiod + End time.Time + Start time.Time v0.1.1 Feb 16, 2021 Changes in this version type Client + CurrentInfo CurrentInfo + func (cli *Client) GetMarksFor(p string) (marks []Mark, err error) + func (cli *Client) GetMarksForWithType(p string, t MarksListType) (marks []Mark, err error) + type MarksByDate []Mark + func (a MarksByDate) Len() int + func (a MarksByDate) Less(i, j int) bool + func (a MarksByDate) Swap(i, j int) v0.1.0 Jan 26, 2021 Changes in this version + var DEBUG bool + type Client struct + Password string + SchoolID int64 + Token string + Username string + func NewClient(login string, password string, schoolID int64, httpClient *http.Client) *Client + func (cli *Client) GetCourses() (courses []Course, err error) + func (cli *Client) GetCurrentInfo() (err error) + func (cli *Client) GetHomework() (hws []Homework, err error) + func (cli *Client) GetMarksCurrent() (marks []Mark, err error) + func (cli *Client) GetMarksFinal() (marks []Mark, err error) + func (cli *Client) GetMarksForMonth(p string) (marks []Mark, err error) + func (cli *Client) GetMarksForMonthWithType(p string, t MarksListType) (marks []Mark, err error) + func (cli *Client) GetMarksPeriods() (periods []Lperiod, err error) + func (cli *Client) GetMessage(msgID int64) (m Message, err error) + func (cli *Client) GetMessages() (messages []Message, err error) + func (cli *Client) GetMessagesCount() (unread int, total int, err error) + func (cli *Client) GetTeachers() (teachers []Teacher, err error) + func (cli *Client) Login() (err error) + func (cli *Client) PrintCookies() + func (cli *Client) SetCookie(name, value string) + func (cli *Client) ToJSON(o interface{}) (result string) + type Course struct + ID int64 + Name string + type CurrentInfo struct + ClassChar string + ClassID int64 + ClassNumber int + EduYearEnd int + EduYearStart int + SchoolID int64 + type Homework struct + ClassID int64 + CourseID int64 + CourseName string + Date time.Time + DayOfWeek string + Homework string + ID int64 + SchoolID int64 + Subject string + type Lperiod struct + EYear int + Name string + Period string + SYear int + SchoolID int64 + func (p Lperiod) String() string + type Mark struct + Annual bool + CourseID int64 + CourseName string + Date time.Time + DayOfWeek string + EYear int + Grade []int8 + HomeWork string + ID int64 + Quarter int + SYear int + SchoolID int64 + Subject string + UserID string + func (m Mark) String() string + type MarkRange int + const Month1 + const Month10 + const Month11 + const Month12 + const Month2 + const Month3 + const Month4 + const Month5 + const Month6 + const Month7 + const Month8 + const Month9 + func (s MarkRange) String() string + type MarksListType int + const Date + const List + const Note + func (s MarksListType) String() string + type Message struct + Body string + Date time.Time + From string + ID int64 + IsUnread bool + Subject string + UserID string + type Region struct + ID int64 + Name string + func GetRegions() (regions []Region, err error) + type Schedule struct + CourseID int64 + Date time.Time + Homework string + ID int64 + Marks []int8 + SchoolID int64 + StudentID int64 + Subject string + type School struct + ID int64 + Name string + RegionID int64 + Type string + func GetSchools(region int64) (schools []School, err error) + type Teacher struct + CourseID string + CourseName string + FullName string + ID int64 + SchoolID int64 + UserID string