thomaspoignant / go-feature-flag

GO Feature Flag is a simple, complete and lightweight self-hosted feature flag solution 100% Open Source. 🎛️
https://gofeatureflag.org/
MIT License
1.29k stars 127 forks source link

(question) Custom json retriever from API #2506

Open sswastioyono18 opened 2 days ago

sswastioyono18 commented 2 days ago

Your question

Hi, I wanted to know if it is possible to have json retriever for the config file because I have a service similar like firebase that stores config as json file

I want to leverage that service as json provider, the client should call the API and parse the json returned from that service as the input retriever

sswastioyono18 commented 2 days ago

nevermind, I just saw that i can use custom retriever easily.. https://gofeatureflag.org/docs/go_module/store_file/custom

closing this one

thomaspoignant commented 2 days ago

Hello @sswastioyono18 This is definitely something doable to create a custom retriever that change the format into the GOFF format.

I am just struggling to see if we can do this as a generic way for any format. Can you answer those questions it will help me:

thomaspoignant commented 2 days ago

nevermind, I just saw that i can use custom retriever easily.. https://gofeatureflag.org/docs/go_module/store_file/custom

closing this one

Note that this is not available for the relay-proxy but only if you use the GO Module.