Documentation ¶
Index ¶
- Variables
- type BoolOp
- type DateTimeOp
- func (*DateTimeOp) Descriptor() ([]byte, []int)deprecated
- func (x *DateTimeOp) GetOp() DateTimeOp_Operator
- func (x *DateTimeOp) GetTimestamp() *timestamp.Timestamp
- func (*DateTimeOp) ProtoMessage()
- func (x *DateTimeOp) ProtoReflect() protoreflect.Message
- func (x *DateTimeOp) Reset()
- func (x *DateTimeOp) String() string
- type DateTimeOp_Operator
- func (DateTimeOp_Operator) Descriptor() protoreflect.EnumDescriptor
- func (x DateTimeOp_Operator) Enum() *DateTimeOp_Operator
- func (DateTimeOp_Operator) EnumDescriptor() ([]byte, []int)deprecated
- func (x DateTimeOp_Operator) Number() protoreflect.EnumNumber
- func (x DateTimeOp_Operator) String() string
- func (DateTimeOp_Operator) Type() protoreflect.EnumType
- type ExperimentFeature
- func (*ExperimentFeature) Descriptor() ([]byte, []int)deprecated
- func (x *ExperimentFeature) GetSalt() string
- func (x *ExperimentFeature) GetVariants() []*Variant
- func (*ExperimentFeature) ProtoMessage()
- func (x *ExperimentFeature) ProtoReflect() protoreflect.Message
- func (x *ExperimentFeature) Reset()
- func (x *ExperimentFeature) String() string
- type FeatureToggle
- func (*FeatureToggle) Descriptor() ([]byte, []int)deprecated
- func (x *FeatureToggle) GetCreatedAt() *timestamp.Timestamp
- func (x *FeatureToggle) GetCreatedBy() *user.User
- func (x *FeatureToggle) GetDeletedAt() *timestamp.Timestamp
- func (x *FeatureToggle) GetDescription() string
- func (x *FeatureToggle) GetEnabled() bool
- func (x *FeatureToggle) GetExperiment() *ExperimentFeature
- func (m *FeatureToggle) GetFeatureDefinition() isFeatureToggle_FeatureDefinition
- func (x *FeatureToggle) GetId() string
- func (x *FeatureToggle) GetName() string
- func (x *FeatureToggle) GetOnOff() *OnOffFeature
- func (x *FeatureToggle) GetPercentage() *PercentageFeature
- func (x *FeatureToggle) GetPermission() *PermissionFeature
- func (x *FeatureToggle) GetPlatforms() []platform.Type
- func (x *FeatureToggle) GetProjectId() string
- func (x *FeatureToggle) GetToggleType() FeatureToggle_Type
- func (x *FeatureToggle) GetUpdatedAt() *timestamp.Timestamp
- func (x *FeatureToggle) GetUpdatedBy() *user.User
- func (x *FeatureToggle) GetVersion() int64
- func (*FeatureToggle) ProtoMessage()
- func (x *FeatureToggle) ProtoReflect() protoreflect.Message
- func (x *FeatureToggle) Reset()
- func (x *FeatureToggle) String() string
- type FeatureToggleHistory
- func (*FeatureToggleHistory) Descriptor() ([]byte, []int)deprecated
- func (x *FeatureToggleHistory) GetHistory() []*FeatureToggle
- func (*FeatureToggleHistory) ProtoMessage()
- func (x *FeatureToggleHistory) ProtoReflect() protoreflect.Message
- func (x *FeatureToggleHistory) Reset()
- func (x *FeatureToggleHistory) String() string
- type FeatureToggle_Experiment
- type FeatureToggle_OnOff
- type FeatureToggle_Percentage
- type FeatureToggle_Permission
- type FeatureToggle_Type
- func (FeatureToggle_Type) Descriptor() protoreflect.EnumDescriptor
- func (x FeatureToggle_Type) Enum() *FeatureToggle_Type
- func (FeatureToggle_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x FeatureToggle_Type) Number() protoreflect.EnumNumber
- func (x FeatureToggle_Type) String() string
- func (FeatureToggle_Type) Type() protoreflect.EnumType
- type FloatOp
- type FloatOp_Operator
- func (FloatOp_Operator) Descriptor() protoreflect.EnumDescriptor
- func (x FloatOp_Operator) Enum() *FloatOp_Operator
- func (FloatOp_Operator) EnumDescriptor() ([]byte, []int)deprecated
- func (x FloatOp_Operator) Number() protoreflect.EnumNumber
- func (x FloatOp_Operator) String() string
- func (FloatOp_Operator) Type() protoreflect.EnumType
- type IntOp
- type IntOp_Operator
- func (IntOp_Operator) Descriptor() protoreflect.EnumDescriptor
- func (x IntOp_Operator) Enum() *IntOp_Operator
- func (IntOp_Operator) EnumDescriptor() ([]byte, []int)deprecated
- func (x IntOp_Operator) Number() protoreflect.EnumNumber
- func (x IntOp_Operator) String() string
- func (IntOp_Operator) Type() protoreflect.EnumType
- type Key
- type Key_Type
- type Match
- func (*Match) Descriptor() ([]byte, []int)deprecated
- func (x *Match) GetBoolOp() *BoolOp
- func (x *Match) GetDateTimeOp() *DateTimeOp
- func (x *Match) GetFloatOp() *FloatOp
- func (x *Match) GetIntOp() *IntOp
- func (x *Match) GetKey() *Key
- func (m *Match) GetOperation() isMatch_Operation
- func (x *Match) GetStringOp() *StringOp
- func (*Match) ProtoMessage()
- func (x *Match) ProtoReflect() protoreflect.Message
- func (x *Match) Reset()
- func (x *Match) String() string
- type Match_BoolOp
- type Match_DateTimeOp
- type Match_FloatOp
- type Match_IntOp
- type Match_StringOp
- type OnOffFeature
- func (*OnOffFeature) Descriptor() ([]byte, []int)deprecated
- func (x *OnOffFeature) GetOff() *Variant
- func (x *OnOffFeature) GetOn() *Variant
- func (*OnOffFeature) ProtoMessage()
- func (x *OnOffFeature) ProtoReflect() protoreflect.Message
- func (x *OnOffFeature) Reset()
- func (x *OnOffFeature) String() string
- type PercentageFeature
- func (*PercentageFeature) Descriptor() ([]byte, []int)deprecated
- func (x *PercentageFeature) GetOff() *Variant
- func (x *PercentageFeature) GetOn() *Variant
- func (x *PercentageFeature) GetSalt() string
- func (x *PercentageFeature) GetStickiness() *Stickiness
- func (*PercentageFeature) ProtoMessage()
- func (x *PercentageFeature) ProtoReflect() protoreflect.Message
- func (x *PercentageFeature) Reset()
- func (x *PercentageFeature) String() string
- type PermissionFeature
- func (*PermissionFeature) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionFeature) GetOff() *Variant
- func (x *PermissionFeature) GetOn() *Variant
- func (x *PermissionFeature) GetSalt() string
- func (*PermissionFeature) ProtoMessage()
- func (x *PermissionFeature) ProtoReflect() protoreflect.Message
- func (x *PermissionFeature) Reset()
- func (x *PermissionFeature) String() string
- type Stickiness
- func (*Stickiness) Descriptor() ([]byte, []int)deprecated
- func (x *Stickiness) GetKeys() []*Key
- func (x *Stickiness) GetStickinessType() Stickiness_Type
- func (*Stickiness) ProtoMessage()
- func (x *Stickiness) ProtoReflect() protoreflect.Message
- func (x *Stickiness) Reset()
- func (x *Stickiness) String() string
- type Stickiness_Type
- func (Stickiness_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Stickiness_Type) Enum() *Stickiness_Type
- func (Stickiness_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Stickiness_Type) Number() protoreflect.EnumNumber
- func (x Stickiness_Type) String() string
- func (Stickiness_Type) Type() protoreflect.EnumType
- type StringOp
- type StringOp_Operator
- func (StringOp_Operator) Descriptor() protoreflect.EnumDescriptor
- func (x StringOp_Operator) Enum() *StringOp_Operator
- func (StringOp_Operator) EnumDescriptor() ([]byte, []int)deprecated
- func (x StringOp_Operator) Number() protoreflect.EnumNumber
- func (x StringOp_Operator) String() string
- func (StringOp_Operator) Type() protoreflect.EnumType
- type Variant
Constants ¶
This section is empty.
Variables ¶
var ( FeatureToggle_Type_name = map[int32]string{ 0: "ON_OFF", 1: "PERCENTAGE", 2: "PERMISSION", 3: "EXPERIMENT", } FeatureToggle_Type_value = map[string]int32{ "ON_OFF": 0, "PERCENTAGE": 1, "PERMISSION": 2, "EXPERIMENT": 3, } )
Enum value maps for FeatureToggle_Type.
var ( StringOp_Operator_name = map[int32]string{ 0: "EQ", 1: "CONTAINS", 2: "IN", } StringOp_Operator_value = map[string]int32{ "EQ": 0, "CONTAINS": 1, "IN": 2, } )
Enum value maps for StringOp_Operator.
var ( FloatOp_Operator_name = map[int32]string{ 0: "EQ", 1: "GT", 2: "LT", 3: "GTE", 4: "LTE", 5: "NEQ", 6: "IN", } FloatOp_Operator_value = map[string]int32{ "EQ": 0, "GT": 1, "LT": 2, "GTE": 3, "LTE": 4, "NEQ": 5, "IN": 6, } )
Enum value maps for FloatOp_Operator.
var ( IntOp_Operator_name = map[int32]string{ 0: "EQ", 1: "GT", 2: "LT", 3: "GTE", 4: "LTE", 5: "NEQ", 6: "IN", } IntOp_Operator_value = map[string]int32{ "EQ": 0, "GT": 1, "LT": 2, "GTE": 3, "LTE": 4, "NEQ": 5, "IN": 6, } )
Enum value maps for IntOp_Operator.
var ( DateTimeOp_Operator_name = map[int32]string{ 0: "BEFORE", 1: "AFTER", } DateTimeOp_Operator_value = map[string]int32{ "BEFORE": 0, "AFTER": 1, } )
Enum value maps for DateTimeOp_Operator.
var ( Key_Type_name = map[int32]string{ 0: "STRING", 1: "BOOLEAN", 2: "FLOAT", 3: "INT", 4: "DATE_TIME", } Key_Type_value = map[string]int32{ "STRING": 0, "BOOLEAN": 1, "FLOAT": 2, "INT": 3, "DATE_TIME": 4, } )
Enum value maps for Key_Type.
var ( Stickiness_Type_name = map[int32]string{ 0: "RANDOM", 1: "KEYS", } Stickiness_Type_value = map[string]int32{ "RANDOM": 0, "KEYS": 1, } )
Enum value maps for Stickiness_Type.
Functions ¶
This section is empty.
Types ¶
type BoolOp ¶
type BoolOp struct { Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*BoolOp) Descriptor
deprecated
func (*BoolOp) ProtoMessage ¶
func (*BoolOp) ProtoMessage()
func (*BoolOp) ProtoReflect ¶
func (x *BoolOp) ProtoReflect() protoreflect.Message
type DateTimeOp ¶
type DateTimeOp struct { Op DateTimeOp_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=feature_toggle.DateTimeOp_Operator" json:"op,omitempty"` Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*DateTimeOp) Descriptor
deprecated
func (*DateTimeOp) Descriptor() ([]byte, []int)
Deprecated: Use DateTimeOp.ProtoReflect.Descriptor instead.
func (*DateTimeOp) GetOp ¶
func (x *DateTimeOp) GetOp() DateTimeOp_Operator
func (*DateTimeOp) GetTimestamp ¶
func (x *DateTimeOp) GetTimestamp() *timestamp.Timestamp
func (*DateTimeOp) ProtoMessage ¶
func (*DateTimeOp) ProtoMessage()
func (*DateTimeOp) ProtoReflect ¶
func (x *DateTimeOp) ProtoReflect() protoreflect.Message
func (*DateTimeOp) Reset ¶
func (x *DateTimeOp) Reset()
func (*DateTimeOp) String ¶
func (x *DateTimeOp) String() string
type DateTimeOp_Operator ¶
type DateTimeOp_Operator int32
const ( DateTimeOp_BEFORE DateTimeOp_Operator = 0 DateTimeOp_AFTER DateTimeOp_Operator = 1 )
func (DateTimeOp_Operator) Descriptor ¶
func (DateTimeOp_Operator) Descriptor() protoreflect.EnumDescriptor
func (DateTimeOp_Operator) Enum ¶
func (x DateTimeOp_Operator) Enum() *DateTimeOp_Operator
func (DateTimeOp_Operator) EnumDescriptor
deprecated
func (DateTimeOp_Operator) EnumDescriptor() ([]byte, []int)
Deprecated: Use DateTimeOp_Operator.Descriptor instead.
func (DateTimeOp_Operator) Number ¶
func (x DateTimeOp_Operator) Number() protoreflect.EnumNumber
func (DateTimeOp_Operator) String ¶
func (x DateTimeOp_Operator) String() string
func (DateTimeOp_Operator) Type ¶
func (DateTimeOp_Operator) Type() protoreflect.EnumType
type ExperimentFeature ¶
type ExperimentFeature struct { Salt string `protobuf:"bytes,1,opt,name=salt,proto3" json:"salt,omitempty"` Variants []*Variant `protobuf:"bytes,2,rep,name=variants,proto3" json:"variants,omitempty"` // contains filtered or unexported fields }
func (*ExperimentFeature) Descriptor
deprecated
func (*ExperimentFeature) Descriptor() ([]byte, []int)
Deprecated: Use ExperimentFeature.ProtoReflect.Descriptor instead.
func (*ExperimentFeature) GetSalt ¶
func (x *ExperimentFeature) GetSalt() string
func (*ExperimentFeature) GetVariants ¶
func (x *ExperimentFeature) GetVariants() []*Variant
func (*ExperimentFeature) ProtoMessage ¶
func (*ExperimentFeature) ProtoMessage()
func (*ExperimentFeature) ProtoReflect ¶
func (x *ExperimentFeature) ProtoReflect() protoreflect.Message
func (*ExperimentFeature) Reset ¶
func (x *ExperimentFeature) Reset()
func (*ExperimentFeature) String ¶
func (x *ExperimentFeature) String() string
type FeatureToggle ¶
type FeatureToggle struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Read-only Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` ToggleType FeatureToggle_Type `` // Set once. /* 131-byte string literal not displayed */ Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` // Read-only. Enabled bool `protobuf:"varint,5,opt,name=enabled,proto3" json:"enabled,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` Platforms []platform.Type `protobuf:"varint,7,rep,packed,name=platforms,proto3,enum=platform.Type" json:"platforms,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,10,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` ProjectId string `protobuf:"bytes,11,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` CreatedBy *user.User `protobuf:"bytes,12,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` UpdatedBy *user.User `protobuf:"bytes,13,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` // Types that are assignable to FeatureDefinition: // *FeatureToggle_OnOff // *FeatureToggle_Percentage // *FeatureToggle_Permission // *FeatureToggle_Experiment FeatureDefinition isFeatureToggle_FeatureDefinition `protobuf_oneof:"FeatureDefinition"` // contains filtered or unexported fields }
func (*FeatureToggle) Descriptor
deprecated
func (*FeatureToggle) Descriptor() ([]byte, []int)
Deprecated: Use FeatureToggle.ProtoReflect.Descriptor instead.
func (*FeatureToggle) GetCreatedAt ¶
func (x *FeatureToggle) GetCreatedAt() *timestamp.Timestamp
func (*FeatureToggle) GetCreatedBy ¶
func (x *FeatureToggle) GetCreatedBy() *user.User
func (*FeatureToggle) GetDeletedAt ¶
func (x *FeatureToggle) GetDeletedAt() *timestamp.Timestamp
func (*FeatureToggle) GetDescription ¶
func (x *FeatureToggle) GetDescription() string
func (*FeatureToggle) GetEnabled ¶
func (x *FeatureToggle) GetEnabled() bool
func (*FeatureToggle) GetExperiment ¶
func (x *FeatureToggle) GetExperiment() *ExperimentFeature
func (*FeatureToggle) GetFeatureDefinition ¶
func (m *FeatureToggle) GetFeatureDefinition() isFeatureToggle_FeatureDefinition
func (*FeatureToggle) GetId ¶
func (x *FeatureToggle) GetId() string
func (*FeatureToggle) GetName ¶
func (x *FeatureToggle) GetName() string
func (*FeatureToggle) GetOnOff ¶
func (x *FeatureToggle) GetOnOff() *OnOffFeature
func (*FeatureToggle) GetPercentage ¶
func (x *FeatureToggle) GetPercentage() *PercentageFeature
func (*FeatureToggle) GetPermission ¶
func (x *FeatureToggle) GetPermission() *PermissionFeature
func (*FeatureToggle) GetPlatforms ¶
func (x *FeatureToggle) GetPlatforms() []platform.Type
func (*FeatureToggle) GetProjectId ¶
func (x *FeatureToggle) GetProjectId() string
func (*FeatureToggle) GetToggleType ¶
func (x *FeatureToggle) GetToggleType() FeatureToggle_Type
func (*FeatureToggle) GetUpdatedAt ¶
func (x *FeatureToggle) GetUpdatedAt() *timestamp.Timestamp
func (*FeatureToggle) GetUpdatedBy ¶
func (x *FeatureToggle) GetUpdatedBy() *user.User
func (*FeatureToggle) GetVersion ¶
func (x *FeatureToggle) GetVersion() int64
func (*FeatureToggle) ProtoMessage ¶
func (*FeatureToggle) ProtoMessage()
func (*FeatureToggle) ProtoReflect ¶
func (x *FeatureToggle) ProtoReflect() protoreflect.Message
func (*FeatureToggle) Reset ¶
func (x *FeatureToggle) Reset()
func (*FeatureToggle) String ¶
func (x *FeatureToggle) String() string
type FeatureToggleHistory ¶
type FeatureToggleHistory struct { History []*FeatureToggle `protobuf:"bytes,1,rep,name=history,proto3" json:"history,omitempty"` // contains filtered or unexported fields }
func (*FeatureToggleHistory) Descriptor
deprecated
func (*FeatureToggleHistory) Descriptor() ([]byte, []int)
Deprecated: Use FeatureToggleHistory.ProtoReflect.Descriptor instead.
func (*FeatureToggleHistory) GetHistory ¶
func (x *FeatureToggleHistory) GetHistory() []*FeatureToggle
func (*FeatureToggleHistory) ProtoMessage ¶
func (*FeatureToggleHistory) ProtoMessage()
func (*FeatureToggleHistory) ProtoReflect ¶
func (x *FeatureToggleHistory) ProtoReflect() protoreflect.Message
func (*FeatureToggleHistory) Reset ¶
func (x *FeatureToggleHistory) Reset()
func (*FeatureToggleHistory) String ¶
func (x *FeatureToggleHistory) String() string
type FeatureToggle_Experiment ¶
type FeatureToggle_Experiment struct {
Experiment *ExperimentFeature `protobuf:"bytes,23,opt,name=experiment,proto3,oneof"`
}
type FeatureToggle_OnOff ¶
type FeatureToggle_OnOff struct {
OnOff *OnOffFeature `protobuf:"bytes,20,opt,name=on_off,json=onOff,proto3,oneof"`
}
type FeatureToggle_Percentage ¶
type FeatureToggle_Percentage struct {
Percentage *PercentageFeature `protobuf:"bytes,21,opt,name=percentage,proto3,oneof"`
}
type FeatureToggle_Permission ¶
type FeatureToggle_Permission struct {
Permission *PermissionFeature `protobuf:"bytes,22,opt,name=permission,proto3,oneof"`
}
type FeatureToggle_Type ¶
type FeatureToggle_Type int32
const ( FeatureToggle_ON_OFF FeatureToggle_Type = 0 FeatureToggle_PERCENTAGE FeatureToggle_Type = 1 // Fail if can't confirm. Must be used by server-side code only. FeatureToggle_PERMISSION FeatureToggle_Type = 2 // MultiVariant. FeatureToggle_EXPERIMENT FeatureToggle_Type = 3 )
func (FeatureToggle_Type) Descriptor ¶
func (FeatureToggle_Type) Descriptor() protoreflect.EnumDescriptor
func (FeatureToggle_Type) Enum ¶
func (x FeatureToggle_Type) Enum() *FeatureToggle_Type
func (FeatureToggle_Type) EnumDescriptor
deprecated
func (FeatureToggle_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use FeatureToggle_Type.Descriptor instead.
func (FeatureToggle_Type) Number ¶
func (x FeatureToggle_Type) Number() protoreflect.EnumNumber
func (FeatureToggle_Type) String ¶
func (x FeatureToggle_Type) String() string
func (FeatureToggle_Type) Type ¶
func (FeatureToggle_Type) Type() protoreflect.EnumType
type FloatOp ¶
type FloatOp struct { Op FloatOp_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=feature_toggle.FloatOp_Operator" json:"op,omitempty"` Values []float32 `protobuf:"fixed32,2,rep,packed,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*FloatOp) Descriptor
deprecated
func (*FloatOp) GetOp ¶
func (x *FloatOp) GetOp() FloatOp_Operator
func (*FloatOp) ProtoMessage ¶
func (*FloatOp) ProtoMessage()
func (*FloatOp) ProtoReflect ¶
func (x *FloatOp) ProtoReflect() protoreflect.Message
type FloatOp_Operator ¶
type FloatOp_Operator int32
const ( FloatOp_EQ FloatOp_Operator = 0 FloatOp_GT FloatOp_Operator = 1 FloatOp_LT FloatOp_Operator = 2 FloatOp_GTE FloatOp_Operator = 3 FloatOp_LTE FloatOp_Operator = 4 FloatOp_NEQ FloatOp_Operator = 5 FloatOp_IN FloatOp_Operator = 6 )
func (FloatOp_Operator) Descriptor ¶
func (FloatOp_Operator) Descriptor() protoreflect.EnumDescriptor
func (FloatOp_Operator) Enum ¶
func (x FloatOp_Operator) Enum() *FloatOp_Operator
func (FloatOp_Operator) EnumDescriptor
deprecated
func (FloatOp_Operator) EnumDescriptor() ([]byte, []int)
Deprecated: Use FloatOp_Operator.Descriptor instead.
func (FloatOp_Operator) Number ¶
func (x FloatOp_Operator) Number() protoreflect.EnumNumber
func (FloatOp_Operator) String ¶
func (x FloatOp_Operator) String() string
func (FloatOp_Operator) Type ¶
func (FloatOp_Operator) Type() protoreflect.EnumType
type IntOp ¶
type IntOp struct { Op IntOp_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=feature_toggle.IntOp_Operator" json:"op,omitempty"` Values []int64 `protobuf:"varint,2,rep,packed,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*IntOp) Descriptor
deprecated
func (*IntOp) GetOp ¶
func (x *IntOp) GetOp() IntOp_Operator
func (*IntOp) ProtoMessage ¶
func (*IntOp) ProtoMessage()
func (*IntOp) ProtoReflect ¶
func (x *IntOp) ProtoReflect() protoreflect.Message
type IntOp_Operator ¶
type IntOp_Operator int32
const ( IntOp_EQ IntOp_Operator = 0 IntOp_GT IntOp_Operator = 1 IntOp_LT IntOp_Operator = 2 IntOp_GTE IntOp_Operator = 3 IntOp_LTE IntOp_Operator = 4 IntOp_NEQ IntOp_Operator = 5 IntOp_IN IntOp_Operator = 6 )
func (IntOp_Operator) Descriptor ¶
func (IntOp_Operator) Descriptor() protoreflect.EnumDescriptor
func (IntOp_Operator) Enum ¶
func (x IntOp_Operator) Enum() *IntOp_Operator
func (IntOp_Operator) EnumDescriptor
deprecated
func (IntOp_Operator) EnumDescriptor() ([]byte, []int)
Deprecated: Use IntOp_Operator.Descriptor instead.
func (IntOp_Operator) Number ¶
func (x IntOp_Operator) Number() protoreflect.EnumNumber
func (IntOp_Operator) String ¶
func (x IntOp_Operator) String() string
func (IntOp_Operator) Type ¶
func (IntOp_Operator) Type() protoreflect.EnumType
type Key ¶
type Key struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` KeyType Key_Type `protobuf:"varint,2,opt,name=key_type,json=keyType,proto3,enum=feature_toggle.Key_Type" json:"key_type,omitempty"` // contains filtered or unexported fields }
func (*Key) Descriptor
deprecated
func (*Key) GetKeyType ¶
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶
func (x *Key) ProtoReflect() protoreflect.Message
type Key_Type ¶
type Key_Type int32
func (Key_Type) Descriptor ¶
func (Key_Type) Descriptor() protoreflect.EnumDescriptor
func (Key_Type) EnumDescriptor
deprecated
func (Key_Type) Number ¶
func (x Key_Type) Number() protoreflect.EnumNumber
func (Key_Type) Type ¶
func (Key_Type) Type() protoreflect.EnumType
type Match ¶
type Match struct { Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Types that are assignable to Operation: // *Match_StringOp // *Match_BoolOp // *Match_FloatOp // *Match_IntOp // *Match_DateTimeOp Operation isMatch_Operation `protobuf_oneof:"Operation"` // contains filtered or unexported fields }
func (*Match) Descriptor
deprecated
func (*Match) GetDateTimeOp ¶
func (x *Match) GetDateTimeOp() *DateTimeOp
func (*Match) GetFloatOp ¶
func (*Match) GetOperation ¶
func (m *Match) GetOperation() isMatch_Operation
func (*Match) GetStringOp ¶
func (*Match) ProtoMessage ¶
func (*Match) ProtoMessage()
func (*Match) ProtoReflect ¶
func (x *Match) ProtoReflect() protoreflect.Message
type Match_BoolOp ¶
type Match_BoolOp struct {
BoolOp *BoolOp `protobuf:"bytes,11,opt,name=bool_op,json=boolOp,proto3,oneof"`
}
type Match_DateTimeOp ¶
type Match_DateTimeOp struct {
DateTimeOp *DateTimeOp `protobuf:"bytes,14,opt,name=date_time_op,json=dateTimeOp,proto3,oneof"`
}
type Match_FloatOp ¶
type Match_FloatOp struct {
FloatOp *FloatOp `protobuf:"bytes,12,opt,name=float_op,json=floatOp,proto3,oneof"`
}
type Match_IntOp ¶
type Match_IntOp struct {
IntOp *IntOp `protobuf:"bytes,13,opt,name=int_op,json=intOp,proto3,oneof"`
}
type Match_StringOp ¶
type Match_StringOp struct {
StringOp *StringOp `protobuf:"bytes,10,opt,name=string_op,json=stringOp,proto3,oneof"`
}
type OnOffFeature ¶
type OnOffFeature struct { On *Variant `protobuf:"bytes,1,opt,name=on,proto3" json:"on,omitempty"` Off *Variant `protobuf:"bytes,2,opt,name=off,proto3" json:"off,omitempty"` // contains filtered or unexported fields }
func (*OnOffFeature) Descriptor
deprecated
func (*OnOffFeature) Descriptor() ([]byte, []int)
Deprecated: Use OnOffFeature.ProtoReflect.Descriptor instead.
func (*OnOffFeature) GetOff ¶
func (x *OnOffFeature) GetOff() *Variant
func (*OnOffFeature) GetOn ¶
func (x *OnOffFeature) GetOn() *Variant
func (*OnOffFeature) ProtoMessage ¶
func (*OnOffFeature) ProtoMessage()
func (*OnOffFeature) ProtoReflect ¶
func (x *OnOffFeature) ProtoReflect() protoreflect.Message
func (*OnOffFeature) Reset ¶
func (x *OnOffFeature) Reset()
func (*OnOffFeature) String ¶
func (x *OnOffFeature) String() string
type PercentageFeature ¶
type PercentageFeature struct { Salt string `protobuf:"bytes,1,opt,name=salt,proto3" json:"salt,omitempty"` On *Variant `protobuf:"bytes,2,opt,name=on,proto3" json:"on,omitempty"` Off *Variant `protobuf:"bytes,3,opt,name=off,proto3" json:"off,omitempty"` Stickiness *Stickiness `protobuf:"bytes,4,opt,name=stickiness,proto3" json:"stickiness,omitempty"` // contains filtered or unexported fields }
func (*PercentageFeature) Descriptor
deprecated
func (*PercentageFeature) Descriptor() ([]byte, []int)
Deprecated: Use PercentageFeature.ProtoReflect.Descriptor instead.
func (*PercentageFeature) GetOff ¶
func (x *PercentageFeature) GetOff() *Variant
func (*PercentageFeature) GetOn ¶
func (x *PercentageFeature) GetOn() *Variant
func (*PercentageFeature) GetSalt ¶
func (x *PercentageFeature) GetSalt() string
func (*PercentageFeature) GetStickiness ¶
func (x *PercentageFeature) GetStickiness() *Stickiness
func (*PercentageFeature) ProtoMessage ¶
func (*PercentageFeature) ProtoMessage()
func (*PercentageFeature) ProtoReflect ¶
func (x *PercentageFeature) ProtoReflect() protoreflect.Message
func (*PercentageFeature) Reset ¶
func (x *PercentageFeature) Reset()
func (*PercentageFeature) String ¶
func (x *PercentageFeature) String() string
type PermissionFeature ¶
type PermissionFeature struct { Salt string `protobuf:"bytes,1,opt,name=salt,proto3" json:"salt,omitempty"` On *Variant `protobuf:"bytes,2,opt,name=on,proto3" json:"on,omitempty"` Off *Variant `protobuf:"bytes,3,opt,name=off,proto3" json:"off,omitempty"` // contains filtered or unexported fields }
func (*PermissionFeature) Descriptor
deprecated
func (*PermissionFeature) Descriptor() ([]byte, []int)
Deprecated: Use PermissionFeature.ProtoReflect.Descriptor instead.
func (*PermissionFeature) GetOff ¶
func (x *PermissionFeature) GetOff() *Variant
func (*PermissionFeature) GetOn ¶
func (x *PermissionFeature) GetOn() *Variant
func (*PermissionFeature) GetSalt ¶
func (x *PermissionFeature) GetSalt() string
func (*PermissionFeature) ProtoMessage ¶
func (*PermissionFeature) ProtoMessage()
func (*PermissionFeature) ProtoReflect ¶
func (x *PermissionFeature) ProtoReflect() protoreflect.Message
func (*PermissionFeature) Reset ¶
func (x *PermissionFeature) Reset()
func (*PermissionFeature) String ¶
func (x *PermissionFeature) String() string
type Stickiness ¶
type Stickiness struct { StickinessType Stickiness_Type `` /* 140-byte string literal not displayed */ Keys []*Key `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*Stickiness) Descriptor
deprecated
func (*Stickiness) Descriptor() ([]byte, []int)
Deprecated: Use Stickiness.ProtoReflect.Descriptor instead.
func (*Stickiness) GetKeys ¶
func (x *Stickiness) GetKeys() []*Key
func (*Stickiness) GetStickinessType ¶
func (x *Stickiness) GetStickinessType() Stickiness_Type
func (*Stickiness) ProtoMessage ¶
func (*Stickiness) ProtoMessage()
func (*Stickiness) ProtoReflect ¶
func (x *Stickiness) ProtoReflect() protoreflect.Message
func (*Stickiness) Reset ¶
func (x *Stickiness) Reset()
func (*Stickiness) String ¶
func (x *Stickiness) String() string
type Stickiness_Type ¶
type Stickiness_Type int32
const ( Stickiness_RANDOM Stickiness_Type = 0 Stickiness_KEYS Stickiness_Type = 1 )
func (Stickiness_Type) Descriptor ¶
func (Stickiness_Type) Descriptor() protoreflect.EnumDescriptor
func (Stickiness_Type) Enum ¶
func (x Stickiness_Type) Enum() *Stickiness_Type
func (Stickiness_Type) EnumDescriptor
deprecated
func (Stickiness_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Stickiness_Type.Descriptor instead.
func (Stickiness_Type) Number ¶
func (x Stickiness_Type) Number() protoreflect.EnumNumber
func (Stickiness_Type) String ¶
func (x Stickiness_Type) String() string
func (Stickiness_Type) Type ¶
func (Stickiness_Type) Type() protoreflect.EnumType
type StringOp ¶
type StringOp struct { Op StringOp_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=feature_toggle.StringOp_Operator" json:"op,omitempty"` Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*StringOp) Descriptor
deprecated
func (*StringOp) GetOp ¶
func (x *StringOp) GetOp() StringOp_Operator
func (*StringOp) ProtoMessage ¶
func (*StringOp) ProtoMessage()
func (*StringOp) ProtoReflect ¶
func (x *StringOp) ProtoReflect() protoreflect.Message
type StringOp_Operator ¶
type StringOp_Operator int32
const ( StringOp_EQ StringOp_Operator = 0 StringOp_CONTAINS StringOp_Operator = 1 StringOp_IN StringOp_Operator = 2 // TODO: Regex )
func (StringOp_Operator) Descriptor ¶
func (StringOp_Operator) Descriptor() protoreflect.EnumDescriptor
func (StringOp_Operator) Enum ¶
func (x StringOp_Operator) Enum() *StringOp_Operator
func (StringOp_Operator) EnumDescriptor
deprecated
func (StringOp_Operator) EnumDescriptor() ([]byte, []int)
Deprecated: Use StringOp_Operator.Descriptor instead.
func (StringOp_Operator) Number ¶
func (x StringOp_Operator) Number() protoreflect.EnumNumber
func (StringOp_Operator) String ¶
func (x StringOp_Operator) String() string
func (StringOp_Operator) Type ¶
func (StringOp_Operator) Type() protoreflect.EnumType
type Variant ¶
type Variant struct { Matches []*Match `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` Weight float32 `protobuf:"fixed32,2,opt,name=weight,proto3" json:"weight,omitempty"` // contains filtered or unexported fields }
func (*Variant) Descriptor
deprecated
func (*Variant) GetMatches ¶
func (*Variant) ProtoMessage ¶
func (*Variant) ProtoMessage()
func (*Variant) ProtoReflect ¶
func (x *Variant) ProtoReflect() protoreflect.Message