web

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 13 Imported by: 0

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL