hrequests

package
v0.0.0-...-32d9c17 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Type string `json:"type"`
	AID  string `json:"aid"`
}

type Client

type Client struct {
	Type string `json:"type"`
	ID   string `json:"id"`
	V    int    `json:"v"`
	Name string `json:"name"`
}

type Config

type Config struct {
	RtMode string `json:"rtMode"`
}

type JourneyDetailsRequest

type JourneyDetailsRequest struct {
	Jid         string `json:"jid"`
	GetPolyline bool   `json:"getPolyline"`
}

type JourneyFilter

type JourneyFilter struct {
	Type  string `json:"type"`
	Mode  string `json:"mode"`
	Value string `json:"value"`
}

type Location

type Location struct {
	Type   string `json:"type"`
	LineId string `json:"lid"`
}

type Request

type Request struct {
	Meth string      `json:"meth"`
	Req  interface{} `json:"req"`
	Cfg  Config      `json:"cfg"`
}

type RequestBase

type RequestBase struct {
	Lang    string     `json:"lang"`
	SvcReqL [1]Request `json:"svcReqL"`
	Ext     string     `json:"ext"`
	Ver     string     `json:"ver"`
	Client  Client     `json:"client"`
	Auth    Auth       `json:"auth"`
}

type StationBoardRequest

type StationBoardRequest struct {
	Type     string          `json:"type"`
	Date     string          `json:"date"`
	Time     string          `json:"time"`
	StbLoc   Location        `json:"stbLoc"`
	JnyFltrL []JourneyFilter `json:"jnyFltrL"`
	Dur      int             `json:"dur"`
}

Jump to

Keyboard shortcuts

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