tasks

package
v0.0.0-...-9135db8 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdministrativeDistricts

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

func NewAdministrativeDistricts

func NewAdministrativeDistricts(db *postgres.Database) *AdministrativeDistricts

func (*AdministrativeDistricts) Run

func (a *AdministrativeDistricts) Run()

type BikeLanes

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

func NewBikeLanes

func NewBikeLanes(db *postgres.Database) *BikeLanes

func (*BikeLanes) Run

func (b *BikeLanes) Run()

func (*BikeLanes) UpdateBikeLanes

func (b *BikeLanes) UpdateBikeLanes(ctx context.Context) error

type Boroughs

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

func NewBoroughs

func NewBoroughs(db *postgres.Database) *Boroughs

func (*Boroughs) Run

func (b *Boroughs) Run()

type FreeFloatingBikes

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

func NewFreeFloatingBikes

func NewFreeFloatingBikes(db *postgres.Database) *FreeFloatingBikes

func (*FreeFloatingBikes) Run

func (f *FreeFloatingBikes) Run()

func (*FreeFloatingBikes) UpdateFreeFloatingBikes

func (f *FreeFloatingBikes) UpdateFreeFloatingBikes(ctx context.Context) error

type FreeFloatingBikesResponse

type FreeFloatingBikesResponse struct {
	LastUpdated int    `json:"last_updated"`
	Ttl         int    `json:"ttl"`
	Version     string `json:"version"`
	Data        struct {
		Bikes []domain.FreeFloatingBike `json:"bikes"`
	} `json:"data"`
}

type StationInformationResponse

type StationInformationResponse struct {
	Data struct {
		StationsInformation []domain.StationInformation `json:"stations"`
	} `json:"data"`
	LastUpdatedOther int64 `json:"lastUpdatedOther"`
	TTL              int64 `json:"ttl"`
}

type StationStatusResponse

type StationStatusResponse struct {
	Data struct {
		StationsStatuses []domain.StationStatus `json:"stations"`
	} `json:"data"`
	LastUpdatedOther int64 `json:"lastUpdatedOther"`
	TTL              int64 `json:"ttl"`
}

type Stations

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

func NewStations

func NewStations(db *postgres.Database) *Stations

func (*Stations) Run

func (s *Stations) Run()

func (*Stations) UpdateStations

func (s *Stations) UpdateStations(ctx context.Context) error

type Statuses

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

func NewStatuses

func NewStatuses(db *postgres.Database) *Statuses

func (*Statuses) Run

func (s *Statuses) Run()

func (*Statuses) UpdateStatuses

func (s *Statuses) UpdateStatuses(ctx context.Context) error

Jump to

Keyboard shortcuts

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