aurion

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MenuNavigateTo(token Token, menuId MenuId, mainMenuUrl string) ([]byte, error)

MenuNavigateTo

func ScrapSchedule added in v0.0.4

func ScrapSchedule(token Token, scheduleOptions ScrapScheduleOption, currentPage []byte) (string, error)

func ScrapScheduleEvent added in v0.0.4

func ScrapScheduleEvent(token Token, eventId EventId, currentPage []byte) (string, error)

func ScrapTable

func ScrapTable(token Token, currentPage []byte, pageOptions ScrapTableOption) (string, error)

Types

type EventId added in v0.0.4

type EventId string

type FormId added in v0.0.4

type FormId string

type Login

type Login struct {
	Username string `json:"username" example:"ronald.weasley" extensions:"x-order=1"`
	Password string `json:"password" example:"i<3hermione" extensions:"x-order=2"`
}
type MenuId []string

type PartialResponse

type PartialResponse struct {
	XMLName xml.Name `xml:"partial-response"`
	Text    string   `xml:",chardata"`
	ID      string   `xml:"id,attr"`
	Changes struct {
		Text   string `xml:",chardata"`
		Update []struct {
			Text string `xml:",chardata"`
			ID   string `xml:"id,attr"`
		} `xml:"update"`
	} `xml:"changes"`
}

type ScrapScheduleOption added in v0.0.4

type ScrapScheduleOption struct {
	Start string
	End   string
}

func CalendarPageOption added in v0.0.4

func CalendarPageOption(scheduleOptions ScrapScheduleOption) ScrapScheduleOption

type ScrapTableOption

type ScrapTableOption struct {
	Url        string
	FormOption url.Values
}

func CalendarEventPage added in v0.0.4

func CalendarEventPage(formId FormId, eventId EventId) ScrapTableOption

func CalendarPage added in v0.0.4

func CalendarPage(formId FormId, options ScrapScheduleOption) ScrapTableOption

type SidebarId added in v0.0.4

type SidebarId string

type Token

type Token string

func GetToken

func GetToken(username string, password string, loginPage string) (Token, error)

GetToken - Return token/cookie with username and password given

type ViewState

type ViewState string

type WebscolaappId added in v0.0.4

type WebscolaappId string

Jump to

Keyboard shortcuts

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