Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

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

Default Implementations

Relationships

Conforms To

  • Configuration.ExpressibleByConfigString
  • Swift.Copyable
  • Swift.CustomStringConvertible
  • Swift.Equatable
  • Swift.Escapable
  • Swift.Sendable
  • Swift.SendableMetatype