database

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorpusEntry

type CorpusEntry struct {
	CRS       string `json:"3ALPHA,omitempty"`
	NLC       int    `json:"NLC,omitempty"`
	NLCDESC   string `json:"NLCDESC,omitempty"`
	NLCDESC16 string `json:"NLCDESC16,omitempty"`
	STANOX    string `json:"STANOX,omitempty"`
	TIPLOC    string `json:"TIPLOC,omitempty"`
	UIC       string `json:"UIC,omitempty"`
}

type DeleteQuery

type DeleteQuery struct {
	TrainUid          string    `json:"trainUid"`
	ScheduleStartDate time.Time `json:"scheduleStartDate"`
	StpIndicator      string    `json:"stpIndicator"`
}

type Service

type Service struct {
	TransactionType   string        `json:"transactionType,omitempty"`
	StpIndicator      string        `json:"stpIndicator,omitempty"`
	Operator          string        `json:"operator,omitempty"`
	TrainUid          string        `json:"trainUid,omitempty"`
	Headcode          string        `json:"headcode,omitempty"`
	PowerType         string        `json:"powerType,omitempty"`
	PlanSpeed         int32         `json:"planSpeed,omitempty"`
	ScheduleStartDate time.Time     `json:"scheduleStartDate,omitempty"`
	ScheduleEndDate   time.Time     `json:"scheduleEndDate,omitempty"`
	ServiceDetail     ServiceDetail `json:"serviceDetail"`
	DaysRun           []string      `json:"daysRun,omitempty"`
	Stops             []Stop        `json:"stops,omitempty"`
}

Defined the Database Document format

type ServiceDetail added in v1.0.2

type ServiceDetail struct {
	FirstClass bool `json:"firstClass"`
	Catering   bool `json:"catering"`
	Sleeper    bool `json:"sleeper"`
	Vstp       bool `json:"vstp"`
}

Contains service detail booleans

type StationEntry

type StationEntry struct {
	CRS     string `json:"3ALPHA,omitempty"`
	NLCDESC string `json:"NLCDESC,omitempty"`
	STANOX  string `json:"STANOX,omitempty"`
	TIPLOC  string `json:"TIPLOC,omitempty"`
}

type Stop

type Stop struct {
	PublicDeparture string `json:"publicDeparture,omitempty"`
	WttDeparture    string `json:"wttDeparture,omitempty"`
	PublicArrival   string `json:"publicArrival,omitempty"`
	WttArrival      string `json:"wttArrival,omitempty"`
	IsPublic        bool   `json:"isPublic"` // Ensure omitempty is not set
	Tiploc          string `json:"tiploc,omitempty"`
	Pass            string `json:"pass,omitempty"`
	Platform        string `json:"platform,omitempty"`
	ArrLine         string `json:"arrLine,omitempty"`
	DepLine         string `json:"depLine,omitempty"`
}

type Version

type Version struct {
	Component string `json:"target"`
	Target    string `json:"component"`
	Version   string `json:"version"`
}

type VersionSelector

type VersionSelector struct {
	Component string `json:"target"`
	Target    string `json:"component"`
}

Jump to

Keyboard shortcuts

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