goparkruncrawler

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

go-parkrun-crawler

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parkrun

type Parkrun struct {
	Parkrun     string
	ParkrunLink url.URL
}

Parkrun represents the parkrun event

type ParkrunRun

type ParkrunRun struct {
	Parkrun         *Parkrun
	Date            time.Time
	GenderPosition  int64
	OverallPosition int64
	Time            time.Duration
	AgeGrade        float64
}

ParkrunRun represents a separate race

func GetRecentRuns

func GetRecentRuns(ctx context.Context, parkrunID string) ([]ParkrunRun, error)

GetRecentRuns returns a list of the last races on the parkrun

func (ParkrunRun) String

func (p ParkrunRun) String() string

Jump to

Keyboard shortcuts

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