Documentation ¶
Index ¶
- Variables
- type RuntimeFraction
- func (*RuntimeFraction) Descriptor() ([]byte, []int)deprecated
- func (x *RuntimeFraction) GetRuntimeFraction() *v3.RuntimeFractionalPercent
- func (x *RuntimeFraction) GetSeed() uint64
- func (*RuntimeFraction) ProtoMessage()
- func (x *RuntimeFraction) ProtoReflect() protoreflect.Message
- func (x *RuntimeFraction) Reset()
- func (x *RuntimeFraction) String() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_matching_input_matchers_runtime_fraction_v3_runtime_fraction_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type RuntimeFraction ¶
type RuntimeFraction struct { // Match the input against the given runtime key. The specified default value is used if key is not // present in the runtime configuration. RuntimeFraction *v3.RuntimeFractionalPercent `protobuf:"bytes,1,opt,name=runtime_fraction,json=runtimeFraction,proto3" json:"runtime_fraction,omitempty"` // Optional seed passed through the hash function. This allows using additional information when computing // the hash value: by changing the seed value, a potentially different outcome can be achieved for the same input. Seed uint64 `protobuf:"varint,2,opt,name=seed,proto3" json:"seed,omitempty"` // contains filtered or unexported fields }
The runtime fraction matchers computes a hash from the input and matches if runtime feature is enabled for the the resulting hash. Every time the input is considered for a match, its hash must fall within the percentage of matches indicated by this field. For a fraction N/D, a number is computed as a hash of the input on a field in the range [0,D). If the number is less than or equal to the value of the numerator N, the matcher evaluates to true. A runtime_fraction input matcher can be used to gradually roll out matcher changes without requiring full code or configuration deployments. Note that distribution of matching results is only as good as one of the input.
func (*RuntimeFraction) Descriptor
deprecated
func (*RuntimeFraction) Descriptor() ([]byte, []int)
Deprecated: Use RuntimeFraction.ProtoReflect.Descriptor instead.
func (*RuntimeFraction) GetRuntimeFraction ¶
func (x *RuntimeFraction) GetRuntimeFraction() *v3.RuntimeFractionalPercent
func (*RuntimeFraction) GetSeed ¶
func (x *RuntimeFraction) GetSeed() uint64
func (*RuntimeFraction) ProtoMessage ¶
func (*RuntimeFraction) ProtoMessage()
func (*RuntimeFraction) ProtoReflect ¶
func (x *RuntimeFraction) ProtoReflect() protoreflect.Message
func (*RuntimeFraction) Reset ¶
func (x *RuntimeFraction) Reset()
func (*RuntimeFraction) String ¶
func (x *RuntimeFraction) String() string