Hive state v0.0.1 Hive View Source

Efficient in-memory fleet state management where each vehicle is a separate process which manages it's own state and provides APIs to access and use it.

Public API exposed under Hive module.

Link to this section Summary

Functions

Check if vehicle is known and supervised

Defleet Vehicle if not known then {:error, :not_found} returned.

Get position by vehicle_id

Get vehicle by vehicle_id

Infleet Vehicle Will return {:error, {:already_started, pid}}.

Update position by vehicle_id

Link to this section Functions

Check if vehicle is known and supervised

Defleet Vehicle if not known then {:error, :not_found} returned.

Link to this function

get_position(vehicle_id)

View Source

Get position by vehicle_id

Get vehicle by vehicle_id

Infleet Vehicle Will return {:error, {:already_started, pid}}.

Link to this function

update_position(vehicle_id, position)

View Source

Update position by vehicle_id