Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExperimentModel ¶ added in v5.5.0
type ExperimentModel struct {
ID int `json:"id"`
Name string `json:"name"`
InExperiment bool `json:"in_experiment"`
}
ExperimentModel is the running experiment a feature state belongs to.
type FeatureModel ¶
type FeatureSegment ¶
type FeatureSegment struct {
Priority int `json:"priority"`
}
type FeatureStateMetadata ¶ added in v5.5.0
type FeatureStateMetadata struct {
Experiment *ExperimentModel `json:"experiment"`
}
FeatureStateMetadata is what Flagsmith reports about a feature state beyond its value.
type FeatureStateModel ¶
type FeatureStateModel struct {
Feature *FeatureModel `json:"feature"`
Enabled bool `json:"enabled"`
FeatureSegment *FeatureSegment `json:"feature_segment"`
DjangoID int `json:"django_id"`
FeatureStateUUID string `json:"featurestate_uuid"`
MultivariateFeatureStateValues []*MultivariateFeatureStateValueModel `json:"multivariate_feature_state_values"`
RawValue interface{} `json:"feature_state_value"`
Metadata *FeatureStateMetadata `json:"metadata"`
}
func (*FeatureStateModel) IsHigherSegmentPriority ¶
func (fs *FeatureStateModel) IsHigherSegmentPriority(other *FeatureStateModel) bool
func (*FeatureStateModel) UnmarshalJSON ¶
func (fs *FeatureStateModel) UnmarshalJSON(bytes []byte) error
func (*FeatureStateModel) Value ¶
func (fs *FeatureStateModel) Value(identityID string) interface{}
type MultivariateFeatureStateValueModel ¶
type MultivariateFeatureStateValueModel struct {
ID *int `json:"ID"`
MultivariateFeatureOption *MultivariateFeatureOptionModel `json:"multivariate_feature_option"`
PercentageAllocation float64 `json:"percentage_allocation"`
MVFSValueUUID string `json:"mv_fs_value_uuid"`
}
func (*MultivariateFeatureStateValueModel) Key ¶
func (mfsv *MultivariateFeatureStateValueModel) Key() string
func (*MultivariateFeatureStateValueModel) Priority ¶
func (mfsv *MultivariateFeatureStateValueModel) Priority() big.Int
Click to show internal directories.
Click to hide internal directories.