View Source Polyn.SchemaStore (Polyn v0.5.0)
A SchemaStore for loading and accessing schemas from the NATS server that were created via Polyn CLI.
You will need this running, likely in your application supervision tree, in order for Polyn to access schemas
examples
Examples
```elixir
children = [
{Polyn.SchemaStore, connection_name: :connection_name_or_pid}
]
opts = [strategy: :one_for_one, name: MySupervisor]
Supervisor.start_link(children, opts)
```
Link to this section Summary
Functions
See Polyn.JSONStore.process_name/1
.
Start a new SchemaStore process
Get a configured store name or the default
Link to this section Types
@type option() :: Polyn.JSONStore.option() | {:schemas, map()}
Link to this section Functions
See Polyn.JSONStore.process_name/1
.
@spec start_link(opts :: [option()]) :: GenServer.on_start()
Start a new SchemaStore process
examples
Examples
iex>Polyn.SchemaStore.start_link(connection_name: :gnat)
:ok
Get a configured store name or the default