Xamal.Configuration.Servers (xamal v0.3.1)

Copy Markdown View Source

Parses the servers section of config.

Supports both array format (implicit "web" role) and map format (named roles).

Summary

Functions

Parse the servers config into role names and their configurations.

Functions

new(servers)

Parse the servers config into role names and their configurations.

Returns a struct with roles as a list of {name, config} tuples.

role_names(servers)