Documentation
¶
Index ¶
- type Reader
- func (mr *Reader) Agencies() chan tl.Agency
- func (mr *Reader) Attributions() chan tl.Attribution
- func (mr *Reader) CalendarDates() chan tl.CalendarDate
- func (mr *Reader) Calendars() chan tl.Calendar
- func (mr *Reader) Close() error
- func (mr *Reader) FareAttributes() chan tl.FareAttribute
- func (mr *Reader) FareRules() chan tl.FareRule
- func (mr *Reader) FeedInfos() chan tl.FeedInfo
- func (mr *Reader) Frequencies() chan tl.Frequency
- func (mr *Reader) Levels() chan tl.Level
- func (mr *Reader) Open() error
- func (mr *Reader) Pathways() chan tl.Pathway
- func (mr *Reader) ReadEntities(c interface{}) error
- func (mr *Reader) Routes() chan tl.Route
- func (mr *Reader) ShapeLinesByShapeID(...string) chan tl.Shape
- func (mr *Reader) Shapes() chan tl.Shape
- func (mr *Reader) ShapesByShapeID(...string) chan []tl.Shape
- func (mr *Reader) StopTimes() chan tl.StopTime
- func (mr *Reader) StopTimesByTripID(...string) chan []tl.StopTime
- func (mr *Reader) Stops() chan tl.Stop
- func (mr *Reader) Transfers() chan tl.Transfer
- func (mr *Reader) Translations() chan tl.Translation
- func (mr *Reader) Trips() chan tl.Trip
- func (mr *Reader) ValidateStructure() []error
- type Writer
- func (mw *Writer) AddEntities(ents []tl.Entity) ([]string, error)
- func (mw *Writer) AddEntity(ent tl.Entity) (string, error)
- func (mw *Writer) Close() error
- func (mw *Writer) Create() error
- func (mw *Writer) Delete() error
- func (mw *Writer) NewReader() (tl.Reader, error)
- func (mw *Writer) Open() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
AgencyList []tl.Agency
RouteList []tl.Route
TripList []tl.Trip
StopList []tl.Stop
StopTimeList []tl.StopTime
ShapeList []tl.Shape
CalendarList []tl.Calendar
CalendarDateList []tl.CalendarDate
FeedInfoList []tl.FeedInfo
FareRuleList []tl.FareRule
FareAttributeList []tl.FareAttribute
FrequencyList []tl.Frequency
TransferList []tl.Transfer
LevelList []tl.Level
PathwayList []tl.Pathway
AttributionList []tl.Attribution
TranslationList []tl.Translation
OtherList []tl.Entity
}
Reader is a mocked up Reader used for testing.
func (*Reader) Attributions ¶ added in v0.10.0
func (mr *Reader) Attributions() chan tl.Attribution
Attributions .
func (*Reader) CalendarDates ¶
func (mr *Reader) CalendarDates() chan tl.CalendarDate
CalendarDates .
func (*Reader) FareAttributes ¶
func (mr *Reader) FareAttributes() chan tl.FareAttribute
FareAttributes .
func (*Reader) ReadEntities ¶
ReadEntities - Only StopTimes are supported; just for passing tests!!
func (*Reader) ShapeLinesByShapeID ¶
ShapeLinesByShapeID .
func (*Reader) ShapesByShapeID ¶
ShapesByShapeID .
func (*Reader) StopTimesByTripID ¶
StopTimesByTripID .
func (*Reader) Translations ¶ added in v0.10.0
func (mr *Reader) Translations() chan tl.Translation
Translations .
func (*Reader) ValidateStructure ¶
ValidateStructure .
type Writer ¶
type Writer struct {
Reader Reader
}
Writer is a mocked up Writer used in tests.
func (*Writer) AddEntities ¶
AddEntities .
Click to show internal directories.
Click to hide internal directories.