api

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SaneDateFormat = "2006-01-02 15:04"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedDbApiClient added in v1.0.2

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

func NewCachedDbApiClient added in v1.0.2

func NewCachedDbApiClient(apiClient DbApiClient) *CachedDbApiClient

func (*CachedDbApiClient) GetStations added in v1.0.2

func (c *CachedDbApiClient) GetStations(searchString string) (*models.Stations, error)

func (*CachedDbApiClient) GetTrains added in v1.0.2

func (c *CachedDbApiClient) GetTrains(date, hour, evaNr, nextStation string) ([]*models.Train, error)

type DbApiClient added in v1.0.2

type DbApiClient interface {
	GetTrains(date, hour, evaNr, nextStation string) ([]*models.Train, error)
	GetStations(searchString string) (*models.Stations, error)
}

type DbApiClientWithRetries added in v1.0.2

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

func NewDbApiClientWithRetries added in v1.0.2

func NewDbApiClientWithRetries(apiClient DbApiClient, retries int) *DbApiClientWithRetries

func (*DbApiClientWithRetries) GetStations added in v1.0.2

func (c *DbApiClientWithRetries) GetStations(searchString string) (*models.Stations, error)

func (*DbApiClientWithRetries) GetTrains added in v1.0.2

func (c *DbApiClientWithRetries) GetTrains(date, hour, evaNr, nextStation string) ([]*models.Train, error)

type TimeTableClient added in v1.0.1

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

func (*TimeTableClient) GetStations added in v1.0.1

func (c *TimeTableClient) GetStations(searchString string) (*models.Stations, error)

func (*TimeTableClient) GetTrains added in v1.0.1

func (c *TimeTableClient) GetTrains(date, hour, evaNr, nextStation string) ([]*models.Train, error)

Jump to

Keyboard shortcuts

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