Last active
May 14, 2020 02:06
-
-
Save lu4nm3/d4e9a22b584809485bb8d325df55448b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sealed trait Status | |
case object Healthy extends Status | |
case object Degraded extends Status | |
case object Unavailable extends Status | |
case class Env(serverUrl: String) | |
case class SystemState(value: Map[Env, Status]) | |
def getServerStatus[F[_]](): Env => F[Status] = ??? | |
def alertAdmin[F[_]](status: Status): Env => F[Unit] = ??? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment