# `Alternera.PluginHosts.Kind`
[🔗](https://github.com/10e-ab/alternera-camel/blob/v0.9.0/alternera_plugin_hosts/lib/alternera/plugin_hosts/kind.ex#L1)

A kind of plugin host: the plugin whose steps call hosts of that kind,
which also configures them, builds their commands and claims their names.
`Plugins.Camel` and `Plugins.Command` are the two. Every function of
`Alternera.PluginHosts` takes the kind first, and each kind has its
own hosts, registries (`PluginHosts.registry/1`), supervisor
(`PluginHosts.Supervisor`) and host suffix, so two kinds may each have a
host of the same name.

The kind's module also implements `Plugin.Provisional.Upstream`, whose
`upstream_suffix/0` names its hosts' HTTP channel
(`PluginHosts.Endpoint`).

# `definitions?`
*optional* 

```elixir
@callback definitions?() :: boolean()
```

Whether the kind's hosts take documents a step writes
(`PluginHosts.Definition`, the `define` frame): Camel's routes "written
here". A host of such a kind takes them only when its entry has
`written_routes` (`PluginHosts.written_routes?/3`).

# `host_label`

```elixir
@callback host_label() :: String.t()
```

The kind's name in log lines and messages: `"Camel"`.

# `host_spec`

```elixir
@callback host_spec(entry :: map()) :: map()
```

The `t:Alternera.PluginHosts.Host.spec/0` of a configured entry, without
the channel (`:protocol`, `:tls_host`), which `PluginHosts` adds.

# `hosts_app`

```elixir
@callback hosts_app() :: atom()
```

The application whose environment holds the kind's `hosts` (`config <app>, hosts: […]`).

# `reloads_in_place?`
*optional* 

```elixir
@callback reloads_in_place?() :: boolean()
```

Whether the kind's hosts read their operations again in place on a
`reload` frame (`Host.reload/1`). A kind without it reloads by a rolling
restart (`PluginHosts.reload/3`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
