Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductConfig ¶
type ProductConfig struct { AppId string `json:"app_id"` HashStrategy string `json:"hash_strategy"` ModifyTime int `json:"modify_time"` LayerMap map[string]et.Layer `json:"layers"` ExperimentMap map[string]et.Experiment `json:"experiments"` FeatureMap map[string]et.Feature `json:"features"` // key:name, value:entity id ExperimentNameToIdMap map[string]string FeatureNameToIdMap map[string]string // all cohort ids contained in experiment/feature ExpCohortIds []string FeatureCohortIds []string }
func (*ProductConfig) GetExperimentFromId ¶
func (c *ProductConfig) GetExperimentFromId(experimentId string) (et.Experiment, error)
func (*ProductConfig) GetFeatureAllowList ¶ added in v1.0.4
func (*ProductConfig) GetFeatureFromId ¶
func (c *ProductConfig) GetFeatureFromId(featureId string) (et.Feature, error)
func (*ProductConfig) Init ¶
func (c *ProductConfig) Init()
Init entity map and white list map for cache
Click to show internal directories.
Click to hide internal directories.