cmd

package
v0.0.0-...-a247b90 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute executes the root command.

func GetFares

func GetFares(cfg *GetFaresConfig) ([]*models.FareDetailExtreme, error)

func Round

func Round(x, unit float64) float64

Types

type Fares

type Fares struct {
	WeeklyStd       float64
	MonthlyStd      float64
	ThreeMonthlyStd float64
	SixMonthlyStd   float64
	AnnualStd       float64
}

type GetFaresConfig

type GetFaresConfig struct {
	Repo        *repository.DtdRepositorySql
	FromStation string
	ToStation   string
	Season      bool
	Class       string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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