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
import zio.Console.printLine | |
import zio._ | |
import zio.http.ChannelEvent.UserEvent._ | |
import zio.http.ChannelEvent._ | |
import zio.http._ | |
import java.io.IOException | |
object Main extends ZIOAppDefault { |
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
package com.alterationx10 | |
import com.alterationx10.ZFlag.ZIOFeatureFlag | |
import zio._ | |
// PSA, just a POC - bad code ahead :-) | |
// ZIO 2.0.0-RC6 for this... | |
// Feature flagging service, mainly driven by Ref[Set[String]]... | |
trait FeatureFlag { |
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
object Gist | |
// A couple lines to help me remember the 5 ZIO shorthand types. | |
// Your Milage May Vary 😅 | |
// Offical Links: | |
// https://zio.dev/docs/overview/overview_index | |
// https://www.zionomicon.com/ | |
// IO can fail with E, or Succeed with A --- in any environment. |
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
name := """play_app""" | |
version := "1.0-SNAPSHOT" | |
lazy val root = (project in file(".")).enablePlugins(PlayScala) | |
scalaVersion := "2.11.7" | |
libraryDependencies ++= Seq( | |
cache, |