rollout / rox-go Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
We're initializing rollout like so:
// domain/flags.go
package domain
import (
"github.com/rollout/rox-go/v5/server"
)
var (
Flags = &RolloutFlags{
EnablePostManualTableRatings: server.NewRoxFlag(false),
}
)
type RolloutFlags struct {
EnablePostManualTableRatings server.RoxFlag
}
// rollout.go
import (
"github.com/rollout/rox-go/v5/server"
"solaireresort.com/playerrating/config"
"solaireresort.com/playerrating/handler"
)
func rolloutInit() {
newRox := server.NewRox()
newRox.Register("playerratings.playerrating.domain.Flags", domain.Flags)
<-newRox.Setup(config.RolloutEnvironmentKey, nil)
handler.Rox = newRox
}
And the time we check the flag
// handler/handler.go
...
Rox.SetCustomStringProperty("playerratings.playerrating.proto.playerrating.Enriched.TableId", e.TableId)
if domain.Flags.EnablePostManualTableRatings.IsEnabled(nil) {
// fire!!
}
...
It works but, sometimes returned flag values are not accurate. Example,
Since these values (masked in red) are listed in this flag, it should always return true.
But, when we try to remove an item from the list of values.
Still, the flag returns true. This happens intermittent, sometimes it works.
Need your assistance to understand the issue.
Thank you!
The license for this repo is non-standard, which prevents it from being rendered by pkg.go.dev. https://pkg.go.dev/github.com/rollout/rox-go/v5
Please change it to a standard license, such as MIT or BSD.
Does rox-go support this?
Can't find it in the docs and code.
https://support.rollout.io/docs/configuration-values
How do I add configuration-values?
it should be log.debug and no error/warning
before we do it, @falconandy - how does other SDK in go handle logging?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.