services

package
v0.0.0-...-f9b2ce9 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arrival

type Arrival struct {
	Line          string
	Destination   string
	Urban         bool
	ToArrival     string    // Minutes missing before the bus arrives
	TimetableTime time.Time // The time of arrival, as written on the timetable
	RealTime      time.Time // The real time of arrival, including delays
}

Arrival represents an arrival at our stop.

type ArrivalsService

type ArrivalsService interface {
	GetArrivals(city, stopID, stopName string) ([]Arrival, error)
}

ArrivalsService is a service which can fetch the bus arrival times of a certain stop.

Jump to

Keyboard shortcuts

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