diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-08-17 23:50:24 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-08-17 23:53:38 -0700 |
commit | 1a4fc9535a89b58e8b67c8996ade0b833116af3a (patch) | |
tree | d16f3129d7bb69f204bba8422e909354195a0042 /lib/healthcheck.ts | |
parent | 157dc327e8fe63541b517cfbeeaf202a3e8553a5 (diff) | |
download | uptime-1a4fc9535a89b58e8b67c8996ade0b833116af3a.tar.gz uptime-1a4fc9535a89b58e8b67c8996ade0b833116af3a.zip |
Move to pengueno.
Diffstat (limited to 'lib/healthcheck.ts')
-rw-r--r-- | lib/healthcheck.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/healthcheck.ts b/lib/healthcheck.ts new file mode 100644 index 0000000..3ecc0eb --- /dev/null +++ b/lib/healthcheck.ts @@ -0,0 +1,18 @@ +import { + TraceUtil, + IEither, + ITraceable, + HealthChecker, + HealthCheckInput, + HealthCheckOutput, + ServerTrace, + Either, +} from '@emprespresso/pengueno'; + +export const healthCheck: HealthChecker = ( + input: ITraceable<HealthCheckInput, ServerTrace>, +): Promise<IEither<Error, HealthCheckOutput>> => + input + .flatMap(TraceUtil.withFunctionTrace(healthCheck)) + .move(Promise.resolve(Either.right<Error, HealthCheckOutput>(HealthCheckOutput.YAASSSLAYQUEEN))) + .get(); |