calculator

package
v0.0.0-...-20e6d49 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MoveState

type MoveState int

MoveState represents the possible states a move can be in based on its data

const (
	MoveStateNew MoveState = iota
	MoveStateAssigned
	MoveStateInTransit
	MoveStateCompleted
	MoveStateCanceled
)

type ShipmentCalculator

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

func (*ShipmentCalculator) CalculateCommodityTotals

func (sc *ShipmentCalculator) CalculateCommodityTotals(shp *shipment.Shipment)

func (*ShipmentCalculator) CalculateStatus

func (sc *ShipmentCalculator) CalculateStatus(ctx context.Context, shp *shipment.Shipment) error

func (*ShipmentCalculator) CalculateTotals

func (sc *ShipmentCalculator) CalculateTotals(shp *shipment.Shipment)

type ShipmentCalculatorParams

type ShipmentCalculatorParams struct {
	fx.In

	Logger              *logger.Logger
	StateMachineManager *statemachine.StateMachineManager
}

type ShipmentState

type ShipmentState int

ShipmentState represents the possible states a shipment can be in based on its data

const (
	ShipmentStateNew ShipmentState = iota
	ShipmentStatePartiallyAssigned
	ShipmentStateAssigned
	ShipmentStateInTransit
	ShipmentStateDelayed
	ShipmentStatePartiallyCompleted
	ShipmentStateCompleted
	ShipmentStateBilled
	ShipmentStateCanceled
)

type StopState

type StopState int

StopState represents the possible states a stop can be in based on its data

const (
	StopStateNew StopState = iota
	StopStateInTransit
	StopStateCompleted
	StopStateCanceled
)

Jump to

Keyboard shortcuts

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