globe_env 1.0.0
globe_env: ^1.0.0 copied to clipboard
A package which provides an interface around the available Globe Environment variables.
Globe Env #
A package which provides an interface around the available Globe Environment variables.
This package is only intended for IO environments (e.g. server).
Usage #
Install the package:
dart pub add globe_env
copied to clipboard
API #
GlobeEnv.port
: Attempts to parse thePORT
environment vaiable as an int. Defaults to 8080.GlobeEnv.isGlobeRuntime
: Returns a boolean whetherGLOBE
is set as an environment variable. If true, indicates the environment is running on Globe.GlobeEnv.hostname
: The hostname of the application running on Globe.GlobeEnv.cronId
: If set, the cron job identifier which invoked the application.GlobeEnv.cronName
: If set, the name of the cron job which invoked the application.GlobeEnv.cronSchedule
: If set, the cron job schedule (e.g.* * * * *
) which invoked the application.GlobeEnv.cronEventId
: If set, the unique cron job event ID which invoked the application.