Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessType ¶
type AccessType string
const ( AccessTypeInheritOrNoInfo AccessType = "InheritOrNoInfo" AccessTypeAccessPossible AccessType = "AccessPossible" AccessTypeNoAccess AccessType = "NoAccess" )
func (*AccessType) Scan ¶
func (e *AccessType) Scan(src interface{}) error
type CreateTripParams ¶
type CreateTripParams struct { RouteID string `db:"route_id"` ServiceID string `db:"service_id"` TripID string `db:"trip_id"` TripHeadsign string `db:"trip_headsign"` TripShortName string `db:"trip_short_name"` DirectionID TripDirection `db:"direction_id"` BlockID int32 `db:"block_id"` ShapeID sql.NullString `db:"shape_id"` WheelchairAccessible AccessType `db:"wheelchair_accessible"` BikesAllowed AccessType `db:"bikes_allowed"` }
type NullAccessType ¶
type NullAccessType struct { AccessType AccessType Valid bool // Valid is true if AccessType is not NULL }
func (*NullAccessType) Scan ¶
func (ns *NullAccessType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullTripDirection ¶
type NullTripDirection struct { TripDirection TripDirection Valid bool // Valid is true if TripDirection is not NULL }
func (*NullTripDirection) Scan ¶
func (ns *NullTripDirection) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateTrip ¶
func (q *Queries) CreateTrip(ctx context.Context, arg CreateTripParams) error
func (*Queries) GetTripByID ¶
type Trip ¶
type Trip struct { RouteID string `csv:"route_id"` ServiceID string `csv:"service_id"` TripID string `csv:"trip_id"` TripHeadsign string `csv:"trip_headsign"` TripShortName string `csv:"trip_short_name"` DirectionID TripDirection `csv:"direction_id"` BlockID int32 `csv:"block_id"` ShapeID sql.NullString `csv:"shape_id,omitempty"` WheelchairAccessible AccessType `csv:"wheelchair_accessible"` BikesAllowed AccessType `csv:"bikes_allowed"` }
type TripDirection ¶
type TripDirection string
const ( TripDirectionOutbound TripDirection = "Outbound" TripDirectionInbound TripDirection = "Inbound" )
func (*TripDirection) Scan ¶
func (e *TripDirection) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.