Versions in this module Expand all Collapse all v1 v1.0.0 Aug 22, 2022 Changes in this version + func DoRequest(client *http.Client, key string, url string) ([]byte, error) + func DryRun(w io.Writer, c Collection) (int, error) + type Collection interface + Datum func(int) interface{} + FprintDatum func(io.Writer, int) (int, error) + ID func(int) int64 + Len func() int + Ref func(int) *fs.DocumentRef + RefByID func(int64) (*fs.DocumentRef, bool) + type Game struct + AwayID int64 + AwayPoints *int + HomeID int64 + HomePoints *int + ID int64 + NeutralSite bool + StartTime time.Time + StartTimeTBD bool + VenueID int64 + Week int + type GameCollection struct + func GetAllGames(client *http.Client, key string, year int) (GameCollection, error) + func GetGames(client *http.Client, key string, year int, week int) (GameCollection, error) + func (gc *GameCollection) Append(g GameCollection) + func (gc GameCollection) Datum(i int) interface{} + func (gc GameCollection) FprintDatum(w io.Writer, i int) (int, error) + func (gc GameCollection) GetWeek(week int) GameCollection + func (gc GameCollection) ID(i int) int64 + func (gc GameCollection) Len() int + func (gc GameCollection) LinkRefs(tc TeamCollection, vc VenueCollection, col *fs.CollectionRef) error + func (gc GameCollection) Ref(i int) *fs.DocumentRef + func (gc GameCollection) RefByID(id int64) (*fs.DocumentRef, bool) + func (gc GameCollection) Split(include []int) (in GameCollection, out GameCollection) + type LatLon struct + X float64 + Y float64 + type Team struct + Abbreviation *string + AltColor *string + AltName1 *string + AltName2 *string + AltName3 *string + Color *string + ID int64 + Location struct{ ... } + Logos []string + Mascot *string + School string + type TeamCollection struct + func GetTeams(client *http.Client, key string) (TeamCollection, error) + func (tc TeamCollection) Datum(i int) interface{} + func (tc TeamCollection) EliminateNonContenders(gc GameCollection) TeamCollection + func (tc TeamCollection) FprintDatum(w io.Writer, i int) (int, error) + func (tc TeamCollection) ID(i int) int64 + func (tc TeamCollection) Len() int + func (tc TeamCollection) LinkRefs(vc VenueCollection, col *fs.CollectionRef) error + func (tc TeamCollection) Ref(i int) *fs.DocumentRef + func (tc TeamCollection) RefByID(id int64) (*fs.DocumentRef, bool) + type TransactionIterator struct + UpdateFcn func(*fs.Transaction, *fs.DocumentRef, interface{}) error + func (ti TransactionIterator) IterateTransaction(ctx context.Context, client *fs.Client, c Collection, n int) <-chan error + type Venue struct + Capacity int + City string + CountryCode string + Dome bool + Grass bool + ID int64 + Location LatLon + Name string + State string + Timezone string + Year int + Zip string + func MakeUnknownVenue() Venue + type VenueCollection struct + func GetVenues(client *http.Client, key string) (VenueCollection, error) + func (vc VenueCollection) Datum(i int) interface{} + func (vc VenueCollection) FprintDatum(w io.Writer, i int) (int, error) + func (vc VenueCollection) ID(i int) int64 + func (vc VenueCollection) Len() int + func (vc VenueCollection) LinkRefs(col *fs.CollectionRef) error + func (vc VenueCollection) Ref(i int) *fs.DocumentRef + func (vc VenueCollection) RefByID(id int64) (*fs.DocumentRef, bool) + type Week struct + FirstGameStart time.Time + LastGameStart time.Time + Number int64 + Season string + type WeekCollection struct + func GetWeeks(client *http.Client, key string, season int, weekNumbers []int) (WeekCollection, error) + func (wc WeekCollection) Datum(i int) interface{} + func (wc WeekCollection) FirstStartTime() time.Time + func (wc WeekCollection) FprintDatum(w io.Writer, i int) (int, error) + func (wc WeekCollection) ID(i int) int64 + func (wc WeekCollection) Len() int + func (wc WeekCollection) LinkRefs(col *fs.CollectionRef) error + func (wc WeekCollection) Ref(i int) *fs.DocumentRef + func (wc WeekCollection) RefByID(id int64) (*fs.DocumentRef, bool) + func (wc WeekCollection) Select(n int) (WeekCollection, bool) + func (wc WeekCollection) Split(include []int) (in WeekCollection, out WeekCollection)