-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: irinaschubert <[email protected]>
- Loading branch information
Showing
166 changed files
with
2,916 additions
and
4,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import http from "k6/http"; | ||
import { sleep } from "k6"; | ||
export const options = { | ||
vus: 10, | ||
duration: "30s", | ||
}; | ||
export default function () { | ||
http.get("http://0.0.0.0:3333/health"); | ||
sleep(1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.knora.webapi | ||
|
||
import zio._ | ||
import zio.logging.backend.SLF4J | ||
|
||
import org.knora.webapi.core.AppServer | ||
|
||
object Main extends ZIOApp { | ||
|
||
/** | ||
* The `Environment` that we require to exist at startup. | ||
*/ | ||
override type Environment = core.LayersLive.DspEnvironmentLive | ||
|
||
/** | ||
* `Bootstrap` will ensure that everything is instantiated when the Runtime is created | ||
* and cleaned up when the Runtime is shutdown. | ||
*/ | ||
override val bootstrap: ZLayer[ | ||
ZIOAppArgs with Scope, | ||
Any, | ||
Environment | ||
] = ZLayer.empty ++ Runtime.removeDefaultLoggers ++ SLF4J.slf4j ++ core.LayersLive.dspLayersLive | ||
|
||
/* Needed for ZIO type magic */ | ||
override val environmentTag: EnvironmentTag[Environment] = EnvironmentTag[Environment] | ||
|
||
/* Here we start our Application */ | ||
override val run = | ||
(for { | ||
never <- ZIO.never | ||
} yield never).provideLayer(AppServer.live) | ||
|
||
} |
Oops, something went wrong.