satellite_ex v0.1.4 Satellite.MagnitudeDatabase View Source
Link to this section Summary
Functions
Returns a list of all norad_id values
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Look up the standard magnitude for the satellite with the given norad_id
Starts the database.
Link to this section Functions
Returns a list of all norad_id values
Examples
iex> {:ok, pid} = Satellite.MagnitudeDatabase.start_link
iex> Satellite.MagnitudeDatabase.all_satellites(pid)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Callback implementation for GenServer.init/1
.
Look up the standard magnitude for the satellite with the given norad_id
Returns {:ok, magnitude}
if the satellite exists, {:error, "Not Found"}
otherwise.
Examples
iex> {:ok, pid} = Satellite.MagnitudeDatabase.start_link
iex> Satellite.MagnitudeDatabase.lookup(pid, 5)
Starts the database.