You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: providers/flagd/README.md
+30-10
Original file line number
Diff line number
Diff line change
@@ -44,16 +44,16 @@ func main() {
44
44
### Using flagd.FromEnv()
45
45
By default the flagd provider will read non-empty environment variables to set its own configuration with the lowest priority. Use the `flagd.FromEnv()` option as an argument for the `flagd.NewProvider()` method to give environment variables a higher priority.
46
46
47
-
| Option name | Environment variable name | Type | Options | Default |
| maxCacheSize | FLAGD_MAX_CACHE_SIZE | int || 1000 |
56
+
| maxEventStreamRetries | FLAGD_MAX_EVENT_STREAM_RETRIES | int || 5 |
57
57
58
58
In the event that another configuration option is passed to the `flagd.NewProvider()` method, such as `flagd.WithPort(8013)` then priority is decided by the order in which the options are passed to the constructor from lowest to highest priority.
59
59
@@ -97,6 +97,26 @@ flagd.WithBasicInMemoryCache()
97
97
flagd.WithoutCache()
98
98
```
99
99
100
+
## Supported Events
101
+
102
+
The flagd provider emits `PROVIDER_READY`, `PROVIDER_ERROR` and `PROVIDER_CONFIGURATION_CHANGED` events.
0 commit comments