features

package
v2.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureModel

type FeatureModel struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL