Liking cljdoc? Tell your friends :D

yuhrao.feature-flag.core


clientclj

(client opts)

Create an unleash client. You can provide any option described in unleash doc Keep in mind that all keys must be kebab-case, all Map<I, K> must be conventional clojure maps. Values for fields that require specific classes (e.g. CustomHttpHeadersProviderImpl) must be provided via interop outside this function.

Fields with specific treatment:

  • custom-http-headers: keys will be converted to camelCase strings. For each key, .addCustomHttpHeader will be called for the config builder
  • sync-on-init?: will be used for builder.synchronousFetchOnInitialisation(boolean)

Unleash docs:

Create an unleash client. You can provide any option described in [unleash doc](https://docs.getunleash.io/reference/sdks/java#configuration-options)
Keep in mind that all keys must be kebab-case, all `Map<I, K>` must be conventional clojure maps. Values for fields that require specific classes (e.g. CustomHttpHeadersProviderImpl)
must be provided via interop outside this function.

Fields with specific treatment:
- custom-http-headers: keys will be converted to camelCase strings. For each key, `.addCustomHttpHeader` will be called for the config builder
- sync-on-init?: will be used for builder.synchronousFetchOnInitialisation(boolean)

Unleash docs:
- [Example Configuration](https://docs.getunleash.io/reference/sdks/java#example-configurations)
raw docstring

enabled?clj

(enabled? client flag-name)
(enabled? client flag-name context-map)

Get flag status. you can optionally send a context map. All standard keys in context-map must be kebab-key. They'll be converte do camelCase internally

Unleash docs:

Get flag status. you can optionally send a context map.
All standard keys in context-map must be kebab-key. They'll be converte do camelCase internally

Unleash docs:
- [Feature Toggle](https://docs.getunleash.io/reference/feature-toggles)
raw docstring

variantclj

(variant client flag-name)
(variant client flag-name context-map)

Get flag variant. you can optionally send a context map. All standard keys in context-map must be kebab-key. They'll be converte do camelCase internally

Unleash docs:

Get flag variant. you can optionally send a context map.
All standard keys in context-map must be kebab-key. They'll be converte do camelCase internally

Unleash docs:
- [Feature Toggle Variants](https://docs.getunleash.io/reference/feature-toggle-variants)
- [Strategy Variants](https://docs.getunleash.io/reference/strategy-variants)
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close