Configuration

io.github.positionpal.location.grpc.GrpcServer.Configuration
See theConfiguration companion trait
object Configuration

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[F[_] : Sync](port: Int): F[ValidatedNec[ConfigurationError, Configuration]]

Create a new Configuration instance.

Create a new Configuration instance.

Value parameters

port

the port the server should listen on.

Attributes

Returns

a Validated instance containing either a valid Configuration or a ConfigurationError.

def fromEnv[F[_] : Sync]: F[ValidatedNec[ConfigurationError, Configuration]]

Create a new Configuration instance with the parameters read from environment variables, expected in GRPC_<PARAMETER> format.

Create a new Configuration instance with the parameters read from environment variables, expected in GRPC_<PARAMETER> format.

Attributes

Returns

a Validated instance containing either a valid Configuration or a ConfigurationError.