Go SDK for Featurevisor.
Under heavy development. Not ready yet.
- Types
- Initial batch of types
- Create parser functions for
DatafileContent
andTest
- Bucketing
- Add bucketing functions following murmurhashv3 algorith
- Add tests using same fixtures as JS SDK
- Logger
- Create
Logger
struct - Add tests
- Create
- DatafileReader
- Create
DatafileReader
struct - 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
Instance
struct - 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
-
-
createInstance
function - Add tests
- Create
- Test runner
- Create an executable
featurevisor-go
that runs tests
- Create an executable
$ go build
$ go test