2025-02-22 10:21:07 +01:00
|
|
|
import Logging
|
|
|
|
|
2025-03-09 00:11:49 +01:00
|
|
|
/// 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
|
|
|
|
|
2025-03-09 00:11:49 +01:00
|
|
|
/// A bind address for the app.
|
2025-02-22 10:21:07 +01:00
|
|
|
var hostname: String { get }
|
2025-03-09 00:11:49 +01:00
|
|
|
/// A logging level to configure for the app.
|
2025-02-22 10:21:07 +01:00
|
|
|
var logLevel: Logger.Level? { get }
|
2025-03-09 00:11:49 +01:00
|
|
|
/// A port for the app to use,
|
2025-02-22 10:21:07 +01:00
|
|
|
var port: Int { get }
|
|
|
|
|
|
|
|
}
|