-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathprovider_options.go
25 lines (20 loc) · 1.15 KB
/
provider_options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package gofeatureflag
import ffclient "github.com/thomaspoignant/go-feature-flag"
// ProviderOptions is the struct containing the provider options you can
// use while initializing GO Feature Flag.
// To have a valid configuration you need to have an Endpoint or GOFeatureFlagConfig set.
type ProviderOptions struct {
// Endpoint contains the DNS of your GO Feature Flag relay proxy (ex: http://localhost:1031)
Endpoint string
// HTTPClient (optional) is the HTTP Client we will use to contact GO Feature Flag.
// By default, we are using a custom HTTPClient with a timeout configure to 10000 milliseconds.
HTTPClient HTTPClient
// GOFeatureFlagConfig is the configuration struct for the GO Feature Flag module.
// If not nil we will launch the provider using the GO Feature Flag module.
GOFeatureFlagConfig *ffclient.Config
// APIKey (optional) If the relay proxy is configured to authenticate the requests, you should provide
// an API Key to the provider. Please ask the administrator of the relay proxy to provide an API Key.
// (This feature is available only if you are using GO Feature Flag relay proxy v1.7.0 or above)
// Default: null
APIKey string
}