rounding

package
v0.0.0-...-d2b98b7 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExecutor

func GetExecutor(input Input) component.Executor[any]

Types

type Component

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

Component is in charge of rounding the calculated fare to the hard-coded decimal places.

func (Component) ExecuteSync

func (c Component) ExecuteSync(ctx context.Context) (any, error)

type Input

type Input interface {
	GetRunningFare() *dto.Fare
}

Jump to

Keyboard shortcuts

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