web

package
v0.0.0-...-e204074 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: AGPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAircraftEndpoint

func NewAircraftEndpoint(dh *data.Handler) echo.HandlerFunc

func NewAirlinesEndpoint

func NewAirlinesEndpoint(dh *data.Handler) echo.HandlerFunc

func NewAirportsEndpoint

func NewAirportsEndpoint(dh *data.Handler) echo.HandlerFunc

func NewAllegrisUpdateFeedEndpoint

func NewAllegrisUpdateFeedEndpoint(s3c adapt.S3Getter, bucket, suffix string) echo.HandlerFunc

func NewConnectionsEndpoint

func NewConnectionsEndpoint(ch *search.ConnectionsHandler, export string) echo.HandlerFunc

func NewConnectionsShareCreateEndpoint

func NewConnectionsShareCreateEndpoint() echo.HandlerFunc

func NewConnectionsShareHTMLEndpoint

func NewConnectionsShareHTMLEndpoint() echo.HandlerFunc

func NewFlightNumberEndpoint

func NewFlightNumberEndpoint(dh *data.Handler) echo.HandlerFunc

func NewFlightSchedulesByConfigurationEndpoint

func NewFlightSchedulesByConfigurationEndpoint(dh *data.Handler) echo.HandlerFunc

func NewFlightUpdateFeedEndpoint

func NewFlightUpdateFeedEndpoint(dh *data.Handler, contentType string, writer func(*feeds.Feed, io.Writer) error) echo.HandlerFunc

func NewQueryFlightSchedulesEndpoint

func NewQueryFlightSchedulesEndpoint(dh *data.Handler) echo.HandlerFunc

func NewSearchEndpoint

func NewSearchEndpoint(dh *data.Handler) echo.HandlerFunc

func NewSeatMapEndpoint

func NewSeatMapEndpoint(dh *data.Handler) echo.HandlerFunc

func NewSitemapHandler

func NewSitemapHandler(dh *data.Handler) echo.HandlerFunc

Types

type AuthorizationHandler

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

func NewAuthorizationHandler

func NewAuthorizationHandler(clientId, clientSecret string, repo *auth.Repo, conv *auth.SessionJwtConverter) (*AuthorizationHandler, error)

func (*AuthorizationHandler) AuthInfo

func (ah *AuthorizationHandler) AuthInfo(c echo.Context) error

func (*AuthorizationHandler) Code

func (ah *AuthorizationHandler) Code(c echo.Context) error

func (*AuthorizationHandler) Login

func (ah *AuthorizationHandler) Login(c echo.Context) error

func (*AuthorizationHandler) Logout

func (ah *AuthorizationHandler) Logout(c echo.Context) error

func (*AuthorizationHandler) Middleware

func (ah *AuthorizationHandler) Middleware(next echo.HandlerFunc) echo.HandlerFunc

func (*AuthorizationHandler) Register

func (ah *AuthorizationHandler) Register(c echo.Context) error

func (*AuthorizationHandler) Required

func (ah *AuthorizationHandler) Required(next echo.HandlerFunc) echo.HandlerFunc

type ColumnIdentifier

type ColumnIdentifier struct {
	Position string `json:"position"`
	Repeat   int    `json:"repeat"`
}

type RowRange

type RowRange [2]int

type RowRanges

type RowRanges []RowRange

func (RowRanges) Expand

func (rr RowRanges) Expand(other RowRanges) RowRanges

type SeatMap

type SeatMap struct {
	CabinClasses common.Set[string] `json:"cabinClasses"`
	Decks        []*SeatMapDeck     `json:"decks"`
}

type SeatMapCabin

type SeatMapCabin struct {
	CabinClass       string             `json:"cabinClass"`
	SeatColumns      []string           `json:"seatColumns"`
	ComponentColumns []ColumnIdentifier `json:"componentColumns"`
	Aisle            common.Set[int]    `json:"aisle"`
	Rows             []SeatMapRow       `json:"rows"`
}

type SeatMapColumn

type SeatMapColumn struct {
	Type     string   `json:"type"`
	Features []string `json:"features"`
}

type SeatMapDeck

type SeatMapDeck struct {
	WingPosition    RowRanges      `json:"wingPosition,omitempty"`
	ExitRowPosition RowRanges      `json:"exitRowPosition,omitempty"`
	Cabins          []SeatMapCabin `json:"cabins"`
}

type SeatMapRow

type SeatMapRow struct {
	Number int                `json:"number"`
	Front  [][]*SeatMapColumn `json:"front"`
	Seats  []*SeatMapColumn   `json:"seats"`
	Rear   [][]*SeatMapColumn `json:"rear"`
}

Jump to

Keyboard shortcuts

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