Documentation ¶
Index ¶
- func InitializeSqliteDatabase(databasePath string, logLevel log.Level) (*gorm.DB, error)
- func ParseStaticGtfsFromPath(path string) (*model.GtfsStaticFeed, error)
- func ParseStaticGtfsFromUrl(url string) (*model.GtfsStaticFeed, error)
- func Store(sqliteDbPath string, staticGtfsUrl string, logLevel log.Level) error
- func WriteStaticGtfsFeedToDatabase(feed *model.GtfsStaticFeed, db *gorm.DB) error
- type GtfsFile
- type GtfsFileCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseStaticGtfsFromPath ¶
func ParseStaticGtfsFromPath(path string) (*model.GtfsStaticFeed, error)
Parses a static GTFS feed into a struct. Handles a local folder, or local zipped file
func ParseStaticGtfsFromUrl ¶
func ParseStaticGtfsFromUrl(url string) (*model.GtfsStaticFeed, error)
func WriteStaticGtfsFeedToDatabase ¶
func WriteStaticGtfsFeedToDatabase(feed *model.GtfsStaticFeed, db *gorm.DB) error
Types ¶
type GtfsFile ¶
type GtfsFile struct { Name string FileObj io.ReadSeeker }
type GtfsFileCollection ¶
type GtfsFileCollection struct {
GtfsFiles []GtfsFile
}
Click to show internal directories.
Click to hide internal directories.