Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BidirectionalType ¶
type BidirectionalType string
const ( BidirectionalTypeUnidirectional BidirectionalType = "Unidirectional" BidirectionalTypeBidirectional BidirectionalType = "Bidirectional" )
func (*BidirectionalType) Scan ¶
func (e *BidirectionalType) Scan(src interface{}) error
type CreatePathwayParams ¶
type CreatePathwayParams struct { PathwayID string `db:"pathway_id"` FromStopID string `db:"from_stop_id"` ToStopID string `db:"to_stop_id"` PathwayMode NullPathwayMode `db:"pathway_mode"` IsBidirectional NullBidirectionalType `db:"is_bidirectional"` Length sql.NullString `db:"length"` TraversalTime sql.NullInt32 `db:"traversal_time"` StairCount sql.NullInt32 `db:"stair_count"` MaxSlope sql.NullString `db:"max_slope"` MinWidth sql.NullString `db:"min_width"` SignpostedAs sql.NullString `db:"signposted_as"` ReversedSignpostedAs sql.NullString `db:"reversed_signposted_as"` }
type NullBidirectionalType ¶
type NullBidirectionalType struct { BidirectionalType BidirectionalType Valid bool // Valid is true if BidirectionalType is not NULL }
func (*NullBidirectionalType) Scan ¶
func (ns *NullBidirectionalType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullPathwayMode ¶
type NullPathwayMode struct { PathwayMode PathwayMode Valid bool // Valid is true if PathwayMode is not NULL }
func (*NullPathwayMode) Scan ¶
func (ns *NullPathwayMode) Scan(value interface{}) error
Scan implements the Scanner interface.
type Pathway ¶
type Pathway struct { PathwayID string `csv:"pathway_id"` FromStopID string `csv:"from_stop_id"` ToStopID string `csv:"to_stop_id"` PathwayMode NullPathwayMode `csv:"pathway_mode,omitempty"` IsBidirectional NullBidirectionalType `csv:"is_bidirectional,omitempty"` Length sql.NullString `csv:"length,omitempty"` TraversalTime sql.NullInt32 `csv:"traversal_time,omitempty"` StairCount sql.NullInt32 `csv:"stair_count,omitempty"` MaxSlope sql.NullString `csv:"max_slope,omitempty"` MinWidth sql.NullString `csv:"min_width,omitempty"` SignpostedAs sql.NullString `csv:"signposted_as,omitempty"` ReversedSignpostedAs sql.NullString `csv:"reversed_signposted_as,omitempty"` }
type PathwayMode ¶
type PathwayMode string
const ( PathwayModeWalkway PathwayMode = "Walkway" PathwayModeStairs PathwayMode = "Stairs" PathwayModeMovingSidewalk PathwayMode = "MovingSidewalk" PathwayModeEscalator PathwayMode = "Escalator" PathwayModeElevator PathwayMode = "Elevator" PathwayModeFareGate PathwayMode = "FareGate" PathwayModeExitGate PathwayMode = "ExitGate" )
func (*PathwayMode) Scan ¶
func (e *PathwayMode) Scan(src interface{}) error
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreatePathway ¶
func (q *Queries) CreatePathway(ctx context.Context, arg CreatePathwayParams) error
func (*Queries) GetPathwayByID ¶
Click to show internal directories.
Click to hide internal directories.