Geolix v0.11.0 Geolix.Adapter behaviour
Adapter behaviour module.
Summary
Callbacks
Returns the children to be supervised by Geolix.Database.Supervisor
Loads a given database into Geolix
Looks up IP information
Callbacks
Returns the children to be supervised by Geolix.Database.Supervisor
.
If no automatic supervision should take place or it is intended to use a adapter specific supervisor (i.e. using the application config) this callback should be either unimplemented or return an empty list.
Loads a given database into Geolix.
Requires at least the fields :id
and :adapter
. Any other required
fields depend on the adapter’s requirements.
Looks up IP information.
The passed opts
are expected to contain a key :where
to define
which database should be queried. If that key is not set then nil
should be returned instead.