doxy/Library/Sources/Public/Protocols/AppArguments.swift

16 lines
388 B
Swift
Raw Normal View History

2025-02-22 10:21:07 +01:00
import Logging
/// A type that defines the input arguments that the `Hummingbird`app receives.
2025-02-22 10:21:07 +01:00
public protocol AppArguments {
// MARK: Properties
/// A bind address for the app.
2025-02-22 10:21:07 +01:00
var hostname: String { get }
/// A logging level to configure for the app.
2025-02-22 10:21:07 +01:00
var logLevel: Logger.Level? { get }
/// A port for the app to use,
2025-02-22 10:21:07 +01:00
var port: Int { get }
}