service

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCafeteria

func GetCafeteria() (*data.Cafeteria, error)

GetCafeteria returns the cafeteria menu for the current day. It performs the web request to the cafeteria endpoint.

func GetSchedule

func GetSchedule() (*data.Schedule, error)

GetSchedule returns the schedule of the logged in user.

func GetWallet

func GetWallet() (*data.Wallet, error)

GetWallet returns the user's wallet balances. It performs the web request to the wallet endpoint.

func Login

func Login(username, password string) error

Login performs the login to the SU website via the default SU client.

func SaveCookies

func SaveCookies() error

SaveCookies saves the cookies of the default service and default SU client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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