Vapor v0.10.0 Vapor.Provider protocol View Source

Link to this section Summary

Functions

The protocol required for loading a configuration. Providers need to implement this protocol and must return either an {:ok, %{}} or {:error, term()}.

Link to this section Types

Link to this section Functions

Specs

load(any()) :: {:ok, %{optional(String.t()) => term()}} | {:error, term()}

The protocol required for loading a configuration. Providers need to implement this protocol and must return either an {:ok, %{}} or {:error, term()}.