Configuration
public struct Configuration : Equatable
Manages an application’s Configuration
.
-
A unique identifier for an application. For example, a reverse domain name like
dev.chaqmoq
.Declaration
Swift
public let identifier: String
-
A path to a directory for public resource files like javascript, css, images, etc.
Declaration
Swift
public let publicDirectory: String
-
A server configuration.
Declaration
Swift
public var server: Server.Configuration
-
Initializes a new instance of
Configuration
.Declaration
Swift
public init( identifier: String = "dev.chaqmoq", publicDirectory: String = "/", server: Server.Configuration = .init() )
Parameters
identifier
A unique identifier for an application. Defaults to
dev.chaqmoq
.publicDirectory
A path to a directory for public resource files like javascript, css, images, etc. Defaults to the root directory.
server
A server configuration. Defaults to the default
Server.Configuration
.