@@ -28,17 +28,16 @@ Options can be defined in the constructor or as environment variables. Construct
28
28
29
29
### Available Configuration Options
30
30
31
- | Option name | Environment variable name | Type | Default | Supported values |
32
- | -----------------------| --------------------------------| ---------| -----------| ------------------|
33
- | host | FLAGD_HOST | string | localhost | |
34
- | port | FLAGD_PORT | number | 8013 | |
35
- | tls | FLAGD_TLS | boolean | false | |
36
- | socketPath | FLAGD_SOCKET_PATH | string | - | |
37
- | resolverType | FLAGD_SOURCE_RESOLVER | string | rpc | rpc, in-process |
38
- | selector | FLAGD_SOURCE_SELECTOR | string | - | |
39
- | cache | FLAGD_CACHE | string | lru | lru,disabled |
40
- | maxCacheSize | FLAGD_MAX_CACHE_SIZE | int | 1000 | |
41
- | maxEventStreamRetries | FLAGD_MAX_EVENT_STREAM_RETRIES | int | 5 | |
31
+ | Option name | Environment variable name | Type | Default | Supported values |
32
+ | -------------------------------------- | ------------------------------ | ------- | --------- | ---------------- |
33
+ | host | FLAGD_HOST | string | localhost | |
34
+ | port | FLAGD_PORT | number | 8013 | |
35
+ | tls | FLAGD_TLS | boolean | false | |
36
+ | socketPath | FLAGD_SOCKET_PATH | string | - | |
37
+ | resolverType | FLAGD_SOURCE_RESOLVER | string | rpc | rpc, in-process |
38
+ | selector | FLAGD_SOURCE_SELECTOR | string | - | |
39
+ | cache | FLAGD_CACHE | string | lru | lru,disabled |
40
+ | maxCacheSize | FLAGD_MAX_CACHE_SIZE | int | 1000 | |
42
41
43
42
Below are examples of usage patterns.
44
43
@@ -80,7 +79,7 @@ In the above example, the provider expects a flag sync service implementation to
80
79
The flagd provider emits ` PROVIDER_READY ` , ` PROVIDER_ERROR ` and ` PROVIDER_CONFIGURATION_CHANGED ` events.
81
80
82
81
| SDK event | Originating action in flagd |
83
- | ---------------------------------- | --------------------------------------------------------------------------------- |
82
+ | -------------------------------- | ------------------------------------------------------------------------------- |
84
83
| ` PROVIDER_READY ` | The streaming connection with flagd has been established. |
85
84
| ` PROVIDER_ERROR ` | The streaming connection with flagd has been broken. |
86
85
| ` PROVIDER_CONFIGURATION_CHANGED ` | A flag configuration (default value, targeting rule, etc) in flagd has changed. |
@@ -90,7 +89,7 @@ For general information on events, see the [official documentation](https://open
90
89
### Flag Metadata
91
90
92
91
| Field | Type | Value |
93
- | --------- | -------- | --------------------------------------------------- |
92
+ | ------- | ------ | ------------------------------------------------- |
94
93
| ` scope ` | string | "selector" set for the associated source in flagd |
95
94
96
95
## Building
0 commit comments