Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureModel ¶
type FeatureSegment ¶
type FeatureSegment struct {
Priority int `json:"priority"`
}
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"` }
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 MultivariateFeatureOptionModel ¶
type MultivariateFeatureOptionModel struct { ID int `json:"id"` Value interface{} `json:"value"` }
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
Click to show internal directories.
Click to hide internal directories.