v1.7.3 GitLab

Configuration

Options are passed when the twrs client is created. Every option is optional; the defaults suit most applications.

Options

OptionTypeDefaultDescription
Pathstring"flags.yaml"Location of the flag file.
ReloadIntervaltime.Duration10sHow often the file is checked for changes. Zero disables reloading.
StrictboolfalseFail construction on unknown keys in the flag file.
BucketAttributestring"user_id"Context attribute used for percentage rollouts.

Durations are given in time.Duration.