campus

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

package campus provides methods for working with the SFO airport campus.

Index

Constants

View Source
const FIRST_SFO int64 = 1159396329

Variables

This section is empty.

Functions

This section is empty.

Types

type BoardingArea

type BoardingArea struct {
	WhosOnFirstId    int64              `json:"id"`
	SFOId            string             `json:"sfo:id"`
	Gates            []*Gate            `json:"gates,omitempty"`
	Checkpoints      []*Checkpoint      `json:"checkpoints,omitempty"`
	Galleries        []*Gallery         `json:"galleries,omitempty"`
	PublicArt        []*PublicArt       `json:"publicart,omitempty"`
	ObservationDecks []*ObservationDeck `json:"observationdecks,omitempty"`
}

type BoardingArea is a lightweight data structure to represent boarding areas at SFO with pointers its descendants.

type Campus

type Campus struct {
	WhosOnFirstId int64     `json:"id"`
	SFOId         string    `json:"sfo:id"`
	Complex       *Complex  `json:"complex"`
	Garages       []*Garage `json:"garages"`
	// Buildings []*Building `json:"buildings,omitempty"`
	PublicArt []*PublicArt `json:"buildings,omitempty"`
}

type Campus is a lightweight data structure to represent the SFO campus with pointers its descendants.

type Checkpoint

type Checkpoint struct {
	WhosOnFirstId int64  `json:"id"`
	SFOId         string `json:"sfo:id"`
}

type Checkpoint is a lightweight data structure to represent security checkpoints at SFO.

type CommonArea

type CommonArea struct {
	WhosOnFirstId    int64              `json:"id"`
	SFOId            string             `json:"sfo:id"`
	Gates            []*Gate            `json:"gates,omitempty"`
	Checkpoints      []*Checkpoint      `json:"checkpoints,omitempty"`
	Galleries        []*Gallery         `json:"galleries,omitempty"`
	PublicArt        []*PublicArt       `json:"publicart,omitempty"`
	ObservationDecks []*ObservationDeck `json:"observationdecks,omitempty"` // for example T2
}

type CommonArea is a lightweight data structure to represent common areas at SFO with pointers its descendants.

type Complex

type Complex struct {
	WhosOnFirstId int64       `json:"id"`
	SFOId         string      `json:"sfo:id"`
	Terminals     []*Terminal `json:"terminals"`
}

type Complex is a lightweight data structure to represent the terminal complex at SFO with pointers its descendants.

func FindMostRecentComplexWithDatabase added in v0.2.0

func FindMostRecentComplexWithDatabase(ctx context.Context, db *sql.DB) (*Complex, error)

func MostRecentComplexWithIterator added in v0.2.0

func MostRecentComplexWithIterator(ctx context.Context, iterator_uri string, paths ...string) (*Complex, error)

MostRecentComplexWithIterator will return a `Complex` instance representing the most recent relationships of the SFO terminal complex and its descendants derived from data defined in 'iterator_uri' and 'paths'.

type Gallery struct {
	WhosOnFirstId int64  `json:"id"`
	SFOId         string `json:"sfomuseum:id"`
}

type Gallery is a lightweight data structure to represent SFO Museum galleries at SFO.

type Garage

type Garage struct {
	WhosOnFirstId int64        `json:"id"`
	SFOId         string       `json:"sfo:id"`
	PublicArt     []*PublicArt `json:"publicart,omitempty"`
}

type Garage is a lightweight data structure to represent garages at SFO with pointers its descendants.

type Gate

type Gate struct {
	WhosOnFirstId int64  `json:"id"`
	SFOId         string `json:"sfo:id"`
}

type Gate is a lightweight data structure to represent passenger gates at SFO.

type ObservationDeck

type ObservationDeck struct {
	WhosOnFirstId int64        `json:"id"`
	SFOId         string       `json:"sfo:id"`
	PublicArt     []*PublicArt `json:"publicart,omitempty"`
	Galleries     []*Gallery   `json:"galleries,omitempty"`
}

type ObservationDeck is a lightweight data structure to represent observation decks at SFO with pointers its descendants.

type PublicArt

type PublicArt struct {
	WhosOnFirstId int64  `json:"id"`
	SFOId         string `json:"sfomuseum:id"`
}

type PublicArt is a lightweight data structure to represent public art works at SFO.

type Terminal

type Terminal struct {
	WhosOnFirstId int64           `json:"id"`
	SFOId         string          `json:"sfo:id"`
	CommonAreas   []*CommonArea   `json:"commonareas,omitempty"`
	BoardingAreas []*BoardingArea `json:"boardingareas,omitempty"`
}

type Terminal is a lightweight data structure to represent terminals at SFO with pointers its descendants.

Jump to

Keyboard shortcuts

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