aurion

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

MenuNavigateTo

func ScrapTable

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

Types

type Login

type Login struct {
	Username string `json:"username"`
	Password string `json:"password"`
}
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 ScrapTableOption

type ScrapTableOption struct {
	Url        string
	FormOption url.Values
}

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

Jump to

Keyboard shortcuts

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