Skip to content

Structure

Environment

The environment the application is running in, i.e., production, dev, etc. All Containers will have an Environment that can be used to dynamically register and configure services.
struct Environment

Overview

switch env {
case .production:
    app.http.server.configuration = ...
default: break
}

The Environment can also be used to retrieve variables from the Process’ ENV.

print(Environment.get("DB_PASSWORD"))

Topics

Structures

  • struct Process
    The process information of an environment. Wraps ProcessInto.processInfo.

Operators

Initializers

Instance Properties

Type Properties

Type Methods

Relationships

Conforms To

  • Swift.Equatable
  • Swift.Sendable
  • Swift.SendableMetatype