Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientFromEnv ¶
Initialize Lekko SDK from environment variables: LEKKO_SDK_MODE - possible values:
'cached' - periodically read configs from Lekko API, cache and evaluate in-memory 'git' - read configs from local git repo and watch for changes, cache and evaluate in-memory 'api' - send every evaluation to Lekko API
LEKKO_REPO_PATH - required in git mode, path where the config repo was clonned LEKKO_API_KEY - Lekko API key
If LEKKO_SDK_MODE is not set to any known value and LEKKO_API_KEY is set and LEKKO_REPO_PATH is not set then 'cached' mode will be used.
Types ¶
Click to show internal directories.
Click to hide internal directories.