Documentation ¶
Overview ¶
This files contains the functions to download the schedule, cafeteria menu, and wallet information from mysu.sabanciuniv.edu.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLoginFailed = errors.New("login failed") ErrNoCredentials = errors.New("no credentials provided") )
View Source
var DefaultSUClient = &client{Client: &http.Client{}}
DefaultSUClient is the default SUClient implementation.
View Source
var ErrRequestData = errors.New("could not get request data")
Functions ¶
This section is empty.
Types ¶
type SUConnector ¶
type SUConnector interface { Init() Login(username, password string) error SaveCookies() error SURetriever }
type SURetriever ¶
type SURetriever interface { RetrieveCafeteria(time.Time) (io.ReadCloser, error) RetrieveSchedule(time.Time) (io.ReadCloser, error) RetrieveWallet() (io.ReadCloser, error) }
Click to show internal directories.
Click to hide internal directories.