Go SDK for Featurevisor.
Under heavy development. Not ready yet.
- Types
- Initial batch of types
- Create parser functions for
DatafileContentandTest
- Bucketing
- Add bucketing functions following murmurhashv3 algorith
- Add tests using same fixtures as JS SDK
- Logger
- Create
Loggerstruct - Add tests
- Create
- DatafileReader
- Create
DatafileReaderstruct - Add tests
- Create
- Conditions
- Write conditions evaluator
- Add tests
- Segments
- Write segments evaluator
- Add tests
- Emitter
- Create Emitter class, keeping multithreading in mind
- Add tests
- Feature
- Create common functions for feature evaluation
- Instance
- Create
Instancestruct - Options:
-
bucketKeySeparator -
configureBucketKey -
configureBucketValue -
datafile -
datafileUrl -
handleDatafileFetch -
initialFeatures -
interceptContext -
logger -
onActivation -
onReady -
onRefresh -
onUpdate -
refreshInterval -
stickyFeatures
-
- Methods:
-
onReady -
setDatafile -
setStickyFeatures -
getRevision -
getFeature -
getBucketKey -
getBucketValue -
isReady -
refresh -
startRefreshing -
stopRefreshing -
evaluateFlag -
isEnabled -
evaluateVariation -
getVariation -
activate -
evaluateVariable -
getVariable -
getVariableBoolean -
getVariableString -
getVariableInteger -
getVariableDouble -
getVariableArray -
getVariableObject -
getVariableJSON
-
-
createInstancefunction - Add tests
- Create
- Test runner
- Create an executable
featurevisor-gothat runs tests
- Create an executable
$ go build
$ go test