feature_toggle

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_shared_feature_toggle_proto protoreflect.FileDescriptor

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) Descriptor() ([]byte, []int)

Deprecated: Use BoolOp.ProtoReflect.Descriptor instead.

func (*BoolOp) GetValue

func (x *BoolOp) GetValue() bool

func (*BoolOp) ProtoMessage

func (*BoolOp) ProtoMessage()

func (*BoolOp) ProtoReflect

func (x *BoolOp) ProtoReflect() protoreflect.Message

func (*BoolOp) Reset

func (x *BoolOp) Reset()

func (*BoolOp) String

func (x *BoolOp) String() string

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) Enum

func (DateTimeOp_Operator) EnumDescriptor deprecated

func (DateTimeOp_Operator) EnumDescriptor() ([]byte, []int)

Deprecated: Use DateTimeOp_Operator.Descriptor instead.

func (DateTimeOp_Operator) Number

func (DateTimeOp_Operator) String

func (x DateTimeOp_Operator) String() string

func (DateTimeOp_Operator) Type

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) Enum

func (FeatureToggle_Type) EnumDescriptor deprecated

func (FeatureToggle_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use FeatureToggle_Type.Descriptor instead.

func (FeatureToggle_Type) Number

func (FeatureToggle_Type) String

func (x FeatureToggle_Type) String() string

func (FeatureToggle_Type) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use FloatOp.ProtoReflect.Descriptor instead.

func (*FloatOp) GetOp

func (x *FloatOp) GetOp() FloatOp_Operator

func (*FloatOp) GetValues

func (x *FloatOp) GetValues() []float32

func (*FloatOp) ProtoMessage

func (*FloatOp) ProtoMessage()

func (*FloatOp) ProtoReflect

func (x *FloatOp) ProtoReflect() protoreflect.Message

func (*FloatOp) Reset

func (x *FloatOp) Reset()

func (*FloatOp) String

func (x *FloatOp) String() string

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) Enum

func (FloatOp_Operator) EnumDescriptor deprecated

func (FloatOp_Operator) EnumDescriptor() ([]byte, []int)

Deprecated: Use FloatOp_Operator.Descriptor instead.

func (FloatOp_Operator) Number

func (FloatOp_Operator) String

func (x FloatOp_Operator) String() string

func (FloatOp_Operator) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use IntOp.ProtoReflect.Descriptor instead.

func (*IntOp) GetOp

func (x *IntOp) GetOp() IntOp_Operator

func (*IntOp) GetValues

func (x *IntOp) GetValues() []int64

func (*IntOp) ProtoMessage

func (*IntOp) ProtoMessage()

func (*IntOp) ProtoReflect

func (x *IntOp) ProtoReflect() protoreflect.Message

func (*IntOp) Reset

func (x *IntOp) Reset()

func (*IntOp) String

func (x *IntOp) String() string

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) 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 (IntOp_Operator) String

func (x IntOp_Operator) String() string

func (IntOp_Operator) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetKey

func (x *Key) GetKey() string

func (*Key) GetKeyType

func (x *Key) GetKeyType() Key_Type

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

func (x *Key) ProtoReflect() protoreflect.Message

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

type Key_Type

type Key_Type int32
const (
	Key_STRING    Key_Type = 0
	Key_BOOLEAN   Key_Type = 1
	Key_FLOAT     Key_Type = 2
	Key_INT       Key_Type = 3
	Key_DATE_TIME Key_Type = 4
)

func (Key_Type) Descriptor

func (Key_Type) Descriptor() protoreflect.EnumDescriptor

func (Key_Type) Enum

func (x Key_Type) Enum() *Key_Type

func (Key_Type) EnumDescriptor deprecated

func (Key_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Key_Type.Descriptor instead.

func (Key_Type) Number

func (x Key_Type) Number() protoreflect.EnumNumber

func (Key_Type) String

func (x Key_Type) String() string

func (Key_Type) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Match.ProtoReflect.Descriptor instead.

func (*Match) GetBoolOp

func (x *Match) GetBoolOp() *BoolOp

func (*Match) GetDateTimeOp

func (x *Match) GetDateTimeOp() *DateTimeOp

func (*Match) GetFloatOp

func (x *Match) GetFloatOp() *FloatOp

func (*Match) GetIntOp

func (x *Match) GetIntOp() *IntOp

func (*Match) GetKey

func (x *Match) GetKey() *Key

func (*Match) GetOperation

func (m *Match) GetOperation() isMatch_Operation

func (*Match) GetStringOp

func (x *Match) GetStringOp() *StringOp

func (*Match) ProtoMessage

func (*Match) ProtoMessage()

func (*Match) ProtoReflect

func (x *Match) ProtoReflect() protoreflect.Message

func (*Match) Reset

func (x *Match) Reset()

func (*Match) String

func (x *Match) String() string

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) 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 (Stickiness_Type) String

func (x Stickiness_Type) String() string

func (Stickiness_Type) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use StringOp.ProtoReflect.Descriptor instead.

func (*StringOp) GetOp

func (x *StringOp) GetOp() StringOp_Operator

func (*StringOp) GetValues

func (x *StringOp) GetValues() []string

func (*StringOp) ProtoMessage

func (*StringOp) ProtoMessage()

func (*StringOp) ProtoReflect

func (x *StringOp) ProtoReflect() protoreflect.Message

func (*StringOp) Reset

func (x *StringOp) Reset()

func (*StringOp) String

func (x *StringOp) String() string

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) Enum

func (StringOp_Operator) EnumDescriptor deprecated

func (StringOp_Operator) EnumDescriptor() ([]byte, []int)

Deprecated: Use StringOp_Operator.Descriptor instead.

func (StringOp_Operator) Number

func (StringOp_Operator) String

func (x StringOp_Operator) String() string

func (StringOp_Operator) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Variant.ProtoReflect.Descriptor instead.

func (*Variant) GetMatches

func (x *Variant) GetMatches() []*Match

func (*Variant) GetWeight

func (x *Variant) GetWeight() float32

func (*Variant) ProtoMessage

func (*Variant) ProtoMessage()

func (*Variant) ProtoReflect

func (x *Variant) ProtoReflect() protoreflect.Message

func (*Variant) Reset

func (x *Variant) Reset()

func (*Variant) String

func (x *Variant) String() string

Jump to

Keyboard shortcuts

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