stats

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFeedStats

func CreateFeedStats(atx tldb.Adapter, reader *tlcsv.Reader, fvid int) error

func FeedVersionServiceBounds

func FeedVersionServiceBounds(reader adapters.Reader) (time.Time, time.Time, error)

func FeedVersionTableDelete

func FeedVersionTableDelete(atx tldb.Adapter, table string, fvid int, ifExists bool) error

func GetFeedState

func GetFeedState(atx tldb.Adapter, feedId int) (dmfr.FeedState, error)

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)

func ServiceLevelDefaultWeek

func ServiceLevelDefaultWeek(start tt.Date, end tt.Date, fvsls []dmfr.FeedVersionServiceLevel) (tt.Date, error)

Types

type FeedVersionOnestopIDBuilder

type FeedVersionOnestopIDBuilder struct {
	*builders.OnestopIDBuilder
}

func NewFeedVersionOnestopIDBuilder

func NewFeedVersionOnestopIDBuilder() *FeedVersionOnestopIDBuilder

func (*FeedVersionOnestopIDBuilder) Copy

type FeedVersionServiceLevelBuilder

type FeedVersionServiceLevelBuilder struct {
	// contains filtered or unexported fields
}

func NewFeedVersionServiceLevelBuilder

func NewFeedVersionServiceLevelBuilder() *FeedVersionServiceLevelBuilder

func (*FeedVersionServiceLevelBuilder) AfterWrite

func (pp *FeedVersionServiceLevelBuilder) AfterWrite(eid string, ent tt.Entity, emap *tt.EntityMap) error

func (*FeedVersionServiceLevelBuilder) Copy

func (*FeedVersionServiceLevelBuilder) ServiceLevels

type FeedVersionServiceWindowBuilder

type FeedVersionServiceWindowBuilder struct {
	// contains filtered or unexported fields
}

func NewFeedVersionServiceWindowBuilder

func NewFeedVersionServiceWindowBuilder() *FeedVersionServiceWindowBuilder

func (*FeedVersionServiceWindowBuilder) AfterWrite

func (pp *FeedVersionServiceWindowBuilder) AfterWrite(eid string, ent tt.Entity, emap *tt.EntityMap) error

func (*FeedVersionServiceWindowBuilder) Copy

func (*FeedVersionServiceWindowBuilder) ServiceWindow

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)

Jump to

Keyboard shortcuts

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