filters

package
v0.0.0-...-d56b31a Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: GPL-3.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(r *resty.Request, f interface{}) *resty.Request

Apply filter on request

Types

type Alert

type Alert struct {
	Pagination
	CodeTrain *string `query:"code_train"`
	StationID *int    `query:"station_id"`
}

Alert filters

type Pagination

type Pagination struct {
	Page       *int `query:"_page"`
	MaxPerPage *int `query:"_max_per_page"`
}

Pagination filter

type Station

type Station struct {
	Pagination
	Name *string `query:"name"`
}

Station filters

type StopTime

type StopTime struct {
	Pagination
	TrainThroughStationID *int    `query:"train_through_station_id"`
	ScheduledBefore       *string `query:"scheduled_before"`
	ScheduledAfter        *string `query:"scheduled_after"`
	ScheduledAt           *string `query:"scheduled_at"`
}

StopTime filters

Jump to

Keyboard shortcuts

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