Documentation ¶
Index ¶
- func CreateFeedStats(atx tldb.Adapter, reader *tlcsv.Reader, fvid int) error
- func FeedVersionServiceBounds(reader adapters.Reader) (time.Time, time.Time, error)
- func FeedVersionTableDelete(atx tldb.Adapter, table string, fvid int, ifExists bool) error
- func GetFeedState(atx tldb.Adapter, feedId int) (dmfr.FeedState, error)
- func NewFeedVersionFileInfosFromReader(reader *tlcsv.Reader) ([]dmfr.FeedVersionFileInfo, error)
- func NewFeedVersionFromReader(reader adapters.Reader) (dmfr.FeedVersion, error)
- func NewFeedVersionServiceLevelsFromReader(reader adapters.Reader) ([]dmfr.FeedVersionServiceLevel, error)
- func NewFeedVersionServiceWindowFromReader(reader adapters.Reader) (dmfr.FeedVersionServiceWindow, error)
- func ServiceLevelDefaultWeek(start tt.Date, end tt.Date, fvsls []dmfr.FeedVersionServiceLevel) (tt.Date, error)
- type FeedVersionOnestopIDBuilder
- type FeedVersionServiceLevelBuilder
- type FeedVersionServiceWindowBuilder
- type FeedVersionStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FeedVersionTableDelete ¶
func NewFeedVersionFileInfosFromReader ¶
func NewFeedVersionFileInfosFromReader(reader *tlcsv.Reader) ([]dmfr.FeedVersionFileInfo, error)
NewFeedVersionFileInfosFromReader calculates statistics about the contents of a feed version
func NewFeedVersionFromReader ¶
func NewFeedVersionFromReader(reader adapters.Reader) (dmfr.FeedVersion, error)
NewFeedVersionFromReader returns a FeedVersion from a Reader.
func NewFeedVersionServiceLevelsFromReader ¶
func NewFeedVersionServiceLevelsFromReader(reader adapters.Reader) ([]dmfr.FeedVersionServiceLevel, error)
NewFeedVersionServiceLevelsFromReader .
func NewFeedVersionServiceWindowFromReader ¶
func NewFeedVersionServiceWindowFromReader(reader adapters.Reader) (dmfr.FeedVersionServiceWindow, error)
Types ¶
type FeedVersionOnestopIDBuilder ¶
type FeedVersionOnestopIDBuilder struct {
*builders.OnestopIDBuilder
}
func NewFeedVersionOnestopIDBuilder ¶
func NewFeedVersionOnestopIDBuilder() *FeedVersionOnestopIDBuilder
type FeedVersionServiceLevelBuilder ¶
type FeedVersionServiceLevelBuilder struct {
// contains filtered or unexported fields
}
func NewFeedVersionServiceLevelBuilder ¶
func NewFeedVersionServiceLevelBuilder() *FeedVersionServiceLevelBuilder
func (*FeedVersionServiceLevelBuilder) AfterWrite ¶
func (*FeedVersionServiceLevelBuilder) Copy ¶
func (pp *FeedVersionServiceLevelBuilder) Copy(*copier.Copier) error
func (*FeedVersionServiceLevelBuilder) ServiceLevels ¶
func (pp *FeedVersionServiceLevelBuilder) ServiceLevels() ([]dmfr.FeedVersionServiceLevel, error)
type FeedVersionServiceWindowBuilder ¶
type FeedVersionServiceWindowBuilder struct {
// contains filtered or unexported fields
}
func NewFeedVersionServiceWindowBuilder ¶
func NewFeedVersionServiceWindowBuilder() *FeedVersionServiceWindowBuilder
func (*FeedVersionServiceWindowBuilder) AfterWrite ¶
func (*FeedVersionServiceWindowBuilder) Copy ¶
func (pp *FeedVersionServiceWindowBuilder) Copy(*copier.Copier) error
func (*FeedVersionServiceWindowBuilder) ServiceWindow ¶
func (pp *FeedVersionServiceWindowBuilder) ServiceWindow() (dmfr.FeedVersionServiceWindow, error)
type FeedVersionStats ¶
type FeedVersionStats struct { ServiceWindow dmfr.FeedVersionServiceWindow ServiceLevels []dmfr.FeedVersionServiceLevel AgencyOnestopIDs []dmfr.FeedVersionAgencyOnestopID RouteOnestopIDs []dmfr.FeedVersionRouteOnestopID StopOnestopIDs []dmfr.FeedVersionStopOnestopID FileInfos []dmfr.FeedVersionFileInfo }
func NewFeedStatsFromReader ¶
func NewFeedStatsFromReader(reader adapters.Reader) (FeedVersionStats, error)
Click to show internal directories.
Click to hide internal directories.