devsisters / zio-agones   0.2.0

Apache License 2.0 GitHub

Lightweight Scala client for Agones SDK using ZIO

Scala versions: 3.x 2.13

zio-agones

Release Artifacts Snapshot Artifacts

zio-agones is a lightweight Scala client for Agones SDK using ZIO.

Sample usage:

import com.devsisters.AgonesClient
import zio.*

for {
  agones <- ZIO.service[AgonesClient]
  _      <- agones.ready
  _      <- agones.health(Schedule.fixed(5.seconds).unit).ignore.fork
  _      <- agones.getGameServer.debug
  _      <- agones.shutdown
} yield ()