client

package
Version: v0.0.0-...-9ac1095 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DarwinD3Client

type DarwinD3Client struct {
	// The url prefix, e.g. "http://localhost:8080" of the remote service
	// Note no trailing "/" as the client will add a patch starting with "/"
	Url string
}

A remove client to the DarwinTimetable microservice

func (*DarwinD3Client) GetSchedule

func (c *DarwinD3Client) GetSchedule(rid string) (*darwind3.Schedule, error)

GetSchedule returns an active schedule or nil

func (*DarwinD3Client) GetStationMessage

func (c *DarwinD3Client) GetStationMessage(id int64) (*darwind3.StationMessage, error)

GetJourney returns a Journey by making an HTTP call to a remote instance of DarwinTimetable

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL