MyApp v0.1.1 Bubbles.Url.GeneratorStrategyBehaviour behaviour View Source
In case a custom strategy for generating unique URIs needs to be implemented this behaviour should be implemented by the module responsible for the custom strategy.
Link to this section Summary
Callbacks
Generates a URI string which is unique among existing URL records in the database
Link to this section Callbacks
Link to this callback
generate_unique_uri(uri, repo, url_schema)
View Source
generate_unique_uri(uri :: String.t(), repo :: Ecto.Repo.t(), url_schema :: Ecto.Schema.t()) :: String.t()
Generates a URI string which is unique among existing URL records in the database.
It takes the URI string as parameter and returns either that same
string if it already is unique, or a modified string. See examples in
documentation for default Bubbles.Url.GeneratorStrategy
module.