func hasKey(settings: Settings; key: string): bool {...}{.inline, raises: [],
tags: [].}
-
Returns true if key is in settings.
Source
Edit
func `[]`(settings: Settings; key: string): JsonNode {...}{.inline,
raises: [KeyError], tags: [].}
-
Retrieves value if key is in settings.
Source
Edit
func getOrDefault(settings: Settings; key: string): JsonNode {...}{.inline,
raises: [], tags: [].}
-
Retrieves value if key is in settings. Otherwise nil will be returned.
Source
Edit
func newCtxSettings(): CtxSettings {...}{.raises: [], tags: [].}
-
Creates a new context settings.
Source
Edit
func newSettings(address = ""; port = Port(8080); debug = true;
reusePort = true; secretKey = randomString(8); appName = "";
bufSize = 40960): Settings {...}{.inline,
raises: [EmptySecretKeyError], tags: [].}
-
Creates a new Settings.
Source
Edit
func loadSettings(data: JsonNode): Settings {...}{.
raises: [KeyError, EmptySecretKeyError], tags: [].}
-
Creates a new Settings.
Source
Edit