Configuration
Options are passed when the twrs client is created. Every option is optional; the defaults suit most applications.
Options
| Option | Type | Default | Description |
|---|---|---|---|
Path | string | "flags.yaml" | Location of the flag file. |
ReloadInterval | time.Duration | 10s | How often the file is checked for changes. Zero disables reloading. |
Strict | bool | false | Fail construction on unknown keys in the flag file. |
BucketAttribute | string | "user_id" | Context attribute used for percentage rollouts. |
Durations are given in time.Duration.