timeedit

package
v0.0.0-...-292d7fc Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustLoadTZ

func MustLoadTZ(tz string) *time.Location

Types

type Class

type Class struct {
	Name       string `json:"name"`
	TimeEditID string `json:"timeEditID"`
}

type Event

type Event struct {
	OLA        string    `json:"ola"`
	ZCode      string    `json:"zCode"`
	Room       string    `json:"room"`
	Campus     string    `json:"campus"`
	RoomInfo   string    `json:"roomInfo"`
	Start      time.Time `json:"start"`
	End        time.Time `json:"end"`
	Classes    []string  `json:"classes"`
	Type       string    `json:"type"`
	Teachers   []string  `json:"teachers"`
	TimeEditID string    `json:"timeEditID"`
	ExtraInfo  string    `json:"extraInfo"`
}

type Room

type Room struct {
	Name       string `json:"name"`
	TimeEditID string `json:"timeEditID"`
}

type TimeEditAPI

type TimeEditAPI struct {
	// contains filtered or unexported fields
}

func NewTimeEditAPI

func NewTimeEditAPI(baseURL string) *TimeEditAPI

func NewTimeEditExperimentalStaffAPI

func NewTimeEditExperimentalStaffAPI(baseURL string) *TimeEditAPI

func (*TimeEditAPI) GetClassesForQuery

func (api *TimeEditAPI) GetClassesForQuery(query string) ([]Class, error)

func (*TimeEditAPI) GetRoomsForCampus

func (api *TimeEditAPI) GetRoomsForCampus(query string) ([]Class, error)

func (*TimeEditAPI) GetTimeTableForID

func (api *TimeEditAPI) GetTimeTableForID(id string, from, to time.Time) ([]Event, error)

Jump to

Keyboard shortcuts

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