View Source Polyn.SchemaStore (Polyn v0.3.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

Returns a specification to start this module under a supervisor.

Start a new SchemaStore process

Link to this section Types

@type option() :: {:connection_name, Gnat.t()} | GenServer.option()

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec start_link(opts :: [option()]) :: GenServer.on_start()

Start a new SchemaStore process

examples

Examples

iex>Polyn.SchemaStore.start_link(connection_name: :gnat)
:ok