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: README.md
+19-5
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,9 @@ ffclient.Init(ffclient.Config{
96
96
We can have only one source for the file, if you set multiple sources in your configuration, only one will be take in
97
97
consideration.
98
98
99
-
### From GitHub
99
+
<details>
100
+
<summary><spanstyle="font-size: 1.2em;font-style: bold;">From GitHub</span> <spanstyle="font-size:0.8em;font-style: italic;">(click to see details)</span></summary>
101
+
100
102
```go
101
103
err:= ffclient.Init(ffclient.Config{
102
104
PollInterval: 3,
@@ -119,7 +121,11 @@ To configure the access to your GitHub file:
119
121
120
122
:warning: GitHub has rate limits, so be sure to not reach them when setting your `PollInterval`.
121
123
122
-
### From an HTTP endpoint
124
+
</details>
125
+
126
+
<details>
127
+
<summary><spanstyle="font-size: 1.2em;font-style: bold;">From an HTTP endpoint</span> <spanstyle="font-size:0.8em;font-style: italic;">(click to see details)</span></summary>
128
+
123
129
```go
124
130
err:= ffclient.Init(ffclient.Config{
125
131
PollInterval: 3,
@@ -138,7 +144,11 @@ To configure your HTTP endpoint:
138
144
-**Header**: Header you should pass while calling the endpoint *(useful for authorization)*.
139
145
-**Timeout**: Timeout for the HTTP call (default is 10 seconds).
140
146
141
-
### From a S3 Bucket
147
+
</details>
148
+
149
+
<details>
150
+
<summary><spanstyle="font-size: 1.2em;font-style: bold;">From a S3 Bucket</span> <spanstyle="font-size:0.8em;font-style: italic;">(click to see details)</span></summary>
151
+
142
152
```go
143
153
err:= ffclient.Init(ffclient.Config{
144
154
PollInterval: 3,
@@ -158,7 +168,11 @@ To configure your S3 file location:
158
168
-**Item**: The location of your file in the bucket. **MANDATORY**
159
169
-**AwsConfig**: An instance of `aws.Config` that configure your access to AWS *(see [this documentation for more info](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html))*. **MANDATORY**
160
170
161
-
### From a file
171
+
</details>
172
+
173
+
<details>
174
+
<summary><spanstyle="font-size: 1.2em;font-style: bold;">From a file</span> <spanstyle="font-size:0.8em;font-style: italic;">(click to see details)</span></summary>
175
+
162
176
```go
163
177
err:= ffclient.Init(ffclient.Config{
164
178
PollInterval: 3,
@@ -173,7 +187,7 @@ To configure your File retriever:
173
187
-**Path**: location of your file. **MANDATORY**
174
188
175
189
*I will not recommend using a file to store your flags except if it is in a shared folder for all your services.*
176
-
190
+
</details>
177
191
178
192
## Flags file format
179
193
`go-feature-flag` is to avoid to have to host a backend to manage your feature flags and to keep them centralized by using a file a source.
0 commit comments