adapters

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityReader

type EntityReader interface {
	Open() error
	Close() error
	ValidateStructure() []error
	String() string
	ReadEntities(c interface{}) error
}

EntityReader defines methods for opening a reader, validating its structure, and reading entities through reflection

type GtfsReader

type GtfsReader interface {
	gtfs.Reader
	StopTimesByTripID(...string) chan []gtfs.StopTime
	ShapesByShapeID(...string) chan []gtfs.Shape
}

GtfsReader defines methods for accessing core GTFS entities

type Reader

type Reader interface {
	EntityReader
	GtfsReader
}

Reader is the main interface for reading GTFS data

type Writer

type Writer interface {
	Open() error
	Close() error
	Create() error
	Delete() error
	NewReader() (Reader, error)
	AddEntity(tt.Entity) (string, error)
	AddEntities([]tt.Entity) ([]string, error)
	String() string
}

Writer writes a GTFS feed.

type WriterWithExtraColumns

type WriterWithExtraColumns interface {
	Writer
	WriteExtraColumns(bool)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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