models

package
v0.0.0-...-0a90cfd Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecreaseDynamicFees

func DecreaseDynamicFees(ID string) error

func IncreaseDynamicFees

func IncreaseDynamicFees(ID string) error

func InitDB

func InitDB() *pg.DB

func ProtoDynamicFees

func ProtoDynamicFees(fees *Fees) *proto.GetDynamicFeesByCityResponse

func ProtoPricingFees

func ProtoPricingFees(fees *Fees) *proto.GetPricingFeesByCityResponse

Types

type Fees

type Fees struct {
	ID       string
	Base     float32
	Distance float32
	Dynamic  float32
	Minute   float32
	Service  float32
}

func GetDynamicFees

func GetDynamicFees(ID string) (*Fees, error)

func GetPricingFees

func GetPricingFees(ID string) (*Fees, error)

Jump to

Keyboard shortcuts

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