snowhite v2.1.3 Snowhite.UrlShortener behaviour View Source

Shortens url using a given url shortener and keeps the value persisted in a dets table

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.

Link to this section Callbacks

Specs

shorten(String.t()) :: {:ok, String.t()} | {:error, any()}