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 CreateStopParams ¶
type CreateStopParams struct { StopID string `db:"stop_id"` StopCode sql.NullString `db:"stop_code"` StopName string `db:"stop_name"` TtsStopName sql.NullString `db:"tts_stop_name"` StopDesc sql.NullString `db:"stop_desc"` StopLat float64 `db:"stop_lat"` StopLon float64 `db:"stop_lon"` ZoneID sql.NullString `db:"zone_id"` StopUrl sql.NullString `db:"stop_url"` LocationType NullLocationType `db:"location_type"` ParentStation sql.NullString `db:"parent_station"` StopTimezone sql.NullString `db:"stop_timezone"` WheelchairBoarding NullAccessType `db:"wheelchair_boarding"` LevelID sql.NullString `db:"level_id"` PlatformCode sql.NullString `db:"platform_code"` }
type LocationType ¶
type LocationType string
const ( LocationTypePlatform LocationType = "Platform" LocationTypeStation LocationType = "Station" LocationTypeExit LocationType = "Exit" LocationTypeNode LocationType = "Node" LocationTypeBoardingArea LocationType = "BoardingArea" )
func (*LocationType) Scan ¶
func (e *LocationType) Scan(src interface{}) error
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 NullLocationType ¶
type NullLocationType struct { LocationType LocationType Valid bool // Valid is true if LocationType is not NULL }
func (*NullLocationType) Scan ¶
func (ns *NullLocationType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateStop ¶
func (q *Queries) CreateStop(ctx context.Context, arg CreateStopParams) error
func (*Queries) GetStopByID ¶
type Stop ¶
type Stop struct { StopID string `csv:"stop_id"` StopCode sql.NullString `csv:"stop_code,omitempty"` StopName string `csv:"stop_name"` TtsStopName sql.NullString `csv:"tts_stop_name,omitempty"` StopDesc sql.NullString `csv:"stop_desc,omitempty"` StopLat float64 `csv:"stop_lat"` StopLon float64 `csv:"stop_lon"` ZoneID sql.NullString `csv:"zone_id,omitempty"` StopUrl sql.NullString `csv:"stop_url,omitempty"` LocationType NullLocationType `csv:"location_type"` ParentStation sql.NullString `csv:"parent_station,omitempty"` StopTimezone sql.NullString `csv:"stop_timezone,omitempty"` WheelchairBoarding NullAccessType `csv:"wheelchair_boarding"` LevelID sql.NullString `csv:"level_id,omitempty"` PlatformCode sql.NullString `csv:"platform_code,omitempty"` }
Click to show internal directories.
Click to hide internal directories.