Documentation ¶
Index ¶
Constants ¶
View Source
const ( AccountId = "1024" CQUPTLatitude = 29.53832 CQUPTLongitude = 106.613922 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { CarService carservice.Client Subscriber mq.Subscriber }
Controller defines a car simulation controller.
func (*Controller) RunSimulations ¶
func (c *Controller) RunSimulations(ctx context.Context)
RunSimulations runs simulations for all cars.
func (*Controller) SimulateCar ¶
SimulateCar simulates a single car.
Click to show internal directories.
Click to hide internal directories.