Polyn Naming

Utility functions for sharing naming functionality amongst Polyn Elixir libraries

installation

Installation

If available in Hex, the package can be installed by adding polyn_naming to your list of dependencies in mix.exs:

def deps do
  [
    {:polyn_naming, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/polyn_naming.

configuration

Configuration

domain

Domain

The Cloud Event Spec specifies that every event "SHOULD be prefixed with a reverse-DNS name." This name should be consistent throughout your organization. You define that domain like this:

config :polyn, :domain, "app.spiff"

event-source-root

Event Source Root

The Cloud Event Spec specifies that every event MUST have a source attribute and recommends it be an absolute URI. Your application must configure the source_root to use for events produced at the application level. Each event producer can include its own source to append to the source_root if it makes sense.

config :polyn, :source_root, "orders.payments"