Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRolloutEvaluator ¶ added in v0.3.0
func NewRolloutEvaluator(logger Logger) *rolloutEvaluator
Types ¶
type FeatureFlagConfig ¶
type Logger ¶
type Logger interface { Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Debugln(args ...interface{}) Infoln(args ...interface{}) Warnln(args ...interface{}) Errorln(args ...interface{}) }
Logger defines the interface this library logs with.
func DefaultLogger ¶
func DefaultLogger() Logger
DefaultLogger creates the default logger (logrus.New()).
type User ¶
type User struct {
// contains filtered or unexported fields
}
User is an object containing attributes to properly identify a given user for rollout evaluation.
func NewUserWithAdditionalAttributes ¶
func NewUserWithAdditionalAttributes(identifier string, email string, country string, custom map[string]string) *User
NewUserWithAdditionalAttributes creates a new user object with additional attributes. The identifier argument is mandatory.
func (*User) GetAttribute ¶
GetAttribute retrieves a user attribute identified by a key.
Click to show internal directories.
Click to hide internal directories.