Verdict4sEnv

com.softinio.verdict4s.Verdict4sEnv
object Verdict4sEnv

Reading configuration from the environment. JVM only.

A separate object rather than methods on Verdict4s, and not by preference: a Scala object cannot be split across src/ and src-jvm/, so adding these there would force default to be duplicated into both platform directories — exactly the drift that keeping one signature on both platforms is meant to prevent.

Scala.js has no environment to read, so this simply does not exist there. The JVM artifact having a slightly larger surface than the JS one is normal and does not affect Verdict4s.default.

Variable names match the official SDKs, so a project can share them.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apiKey[F[_] : Sync]: F[ApiKey]

The key from TYPESAFE_API_KEY, failing if it is absent or blank.

The key from TYPESAFE_API_KEY, failing if it is absent or blank.

Attributes

def baseUri[F[_] : Sync]: F[Uri]

The base URI from TYPESAFE_BASE_URL, or the service's own address.

The base URI from TYPESAFE_BASE_URL, or the service's own address.

Attributes

def default[F[_] : Async]: Resource[F, Verdict4sClient[F]]

A client configured entirely from the environment.

A client configured entirely from the environment.

Attributes

def model[F[_] : Sync]: F[Model]

The default model from TYPESAFE_DEFAULT_MODEL, or jev-latest.

The default model from TYPESAFE_DEFAULT_MODEL, or jev-latest.

Attributes