evaluation

package
v1.34.2-20250101163519... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EvaluationReason_name = map[int32]string{
		0: "UNKNOWN_EVALUATION_REASON",
		1: "FLAG_DISABLED_EVALUATION_REASON",
		2: "MATCH_EVALUATION_REASON",
		3: "DEFAULT_EVALUATION_REASON",
	}
	EvaluationReason_value = map[string]int32{
		"UNKNOWN_EVALUATION_REASON":       0,
		"FLAG_DISABLED_EVALUATION_REASON": 1,
		"MATCH_EVALUATION_REASON":         2,
		"DEFAULT_EVALUATION_REASON":       3,
	}
)

Enum value maps for EvaluationReason.

View Source
var (
	ErrorEvaluationReason_name = map[int32]string{
		0: "UNKNOWN_ERROR_EVALUATION_REASON",
		1: "NOT_FOUND_ERROR_EVALUATION_REASON",
	}
	ErrorEvaluationReason_value = map[string]int32{
		"UNKNOWN_ERROR_EVALUATION_REASON":   0,
		"NOT_FOUND_ERROR_EVALUATION_REASON": 1,
	}
)

Enum value maps for ErrorEvaluationReason.

View Source
var (
	EvaluationResponseType_name = map[int32]string{
		0: "VARIANT_EVALUATION_RESPONSE_TYPE",
		1: "BOOLEAN_EVALUATION_RESPONSE_TYPE",
		2: "ERROR_EVALUATION_RESPONSE_TYPE",
	}
	EvaluationResponseType_value = map[string]int32{
		"VARIANT_EVALUATION_RESPONSE_TYPE": 0,
		"BOOLEAN_EVALUATION_RESPONSE_TYPE": 1,
		"ERROR_EVALUATION_RESPONSE_TYPE":   2,
	}
)

Enum value maps for EvaluationResponseType.

View Source
var (
	EvaluationRolloutType_name = map[int32]string{
		0: "UNKNOWN_ROLLOUT_TYPE",
		1: "SEGMENT_ROLLOUT_TYPE",
		2: "THRESHOLD_ROLLOUT_TYPE",
	}
	EvaluationRolloutType_value = map[string]int32{
		"UNKNOWN_ROLLOUT_TYPE":   0,
		"SEGMENT_ROLLOUT_TYPE":   1,
		"THRESHOLD_ROLLOUT_TYPE": 2,
	}
)

Enum value maps for EvaluationRolloutType.

View Source
var (
	EvaluationSegmentOperator_name = map[int32]string{
		0: "OR_SEGMENT_OPERATOR",
		1: "AND_SEGMENT_OPERATOR",
	}
	EvaluationSegmentOperator_value = map[string]int32{
		"OR_SEGMENT_OPERATOR":  0,
		"AND_SEGMENT_OPERATOR": 1,
	}
)

Enum value maps for EvaluationSegmentOperator.

View Source
var (
	EvaluationSegmentMatchType_name = map[int32]string{
		0: "ALL_SEGMENT_MATCH_TYPE",
		1: "ANY_SEGMENT_MATCH_TYPE",
	}
	EvaluationSegmentMatchType_value = map[string]int32{
		"ALL_SEGMENT_MATCH_TYPE": 0,
		"ANY_SEGMENT_MATCH_TYPE": 1,
	}
)

Enum value maps for EvaluationSegmentMatchType.

View Source
var (
	EvaluationFlagType_name = map[int32]string{
		0: "VARIANT_FLAG_TYPE",
		1: "BOOLEAN_FLAG_TYPE",
	}
	EvaluationFlagType_value = map[string]int32{
		"VARIANT_FLAG_TYPE": 0,
		"BOOLEAN_FLAG_TYPE": 1,
	}
)

Enum value maps for EvaluationFlagType.

View Source
var (
	EvaluationConstraintComparisonType_name = map[int32]string{
		0: "UNKNOWN_CONSTRAINT_COMPARISON_TYPE",
		1: "STRING_CONSTRAINT_COMPARISON_TYPE",
		2: "NUMBER_CONSTRAINT_COMPARISON_TYPE",
		3: "BOOLEAN_CONSTRAINT_COMPARISON_TYPE",
		4: "DATETIME_CONSTRAINT_COMPARISON_TYPE",
		5: "ENTITY_ID_CONSTRAINT_COMPARISON_TYPE",
	}
	EvaluationConstraintComparisonType_value = map[string]int32{
		"UNKNOWN_CONSTRAINT_COMPARISON_TYPE":   0,
		"STRING_CONSTRAINT_COMPARISON_TYPE":    1,
		"NUMBER_CONSTRAINT_COMPARISON_TYPE":    2,
		"BOOLEAN_CONSTRAINT_COMPARISON_TYPE":   3,
		"DATETIME_CONSTRAINT_COMPARISON_TYPE":  4,
		"ENTITY_ID_CONSTRAINT_COMPARISON_TYPE": 5,
	}
)

Enum value maps for EvaluationConstraintComparisonType.

View Source
var File_evaluation_evaluation_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BatchEvaluationRequest

type BatchEvaluationRequest struct {
	RequestId string               `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Requests  []*EvaluationRequest `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"`
	Reference string               `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchEvaluationRequest) Descriptor deprecated

func (*BatchEvaluationRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchEvaluationRequest.ProtoReflect.Descriptor instead.

func (*BatchEvaluationRequest) GetReference

func (x *BatchEvaluationRequest) GetReference() string

func (*BatchEvaluationRequest) GetRequestId

func (x *BatchEvaluationRequest) GetRequestId() string

func (*BatchEvaluationRequest) GetRequests

func (x *BatchEvaluationRequest) GetRequests() []*EvaluationRequest

func (*BatchEvaluationRequest) ProtoMessage

func (*BatchEvaluationRequest) ProtoMessage()

func (*BatchEvaluationRequest) ProtoReflect

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

func (*BatchEvaluationRequest) Reset

func (x *BatchEvaluationRequest) Reset()

func (*BatchEvaluationRequest) String

func (x *BatchEvaluationRequest) String() string

type BatchEvaluationResponse

type BatchEvaluationResponse struct {
	RequestId             string                `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Responses             []*EvaluationResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"`
	RequestDurationMillis float64               `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchEvaluationResponse) Descriptor deprecated

func (*BatchEvaluationResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchEvaluationResponse.ProtoReflect.Descriptor instead.

func (*BatchEvaluationResponse) GetRequestDurationMillis

func (x *BatchEvaluationResponse) GetRequestDurationMillis() float64

func (*BatchEvaluationResponse) GetRequestId

func (x *BatchEvaluationResponse) GetRequestId() string

func (*BatchEvaluationResponse) GetResponses

func (x *BatchEvaluationResponse) GetResponses() []*EvaluationResponse

func (*BatchEvaluationResponse) ProtoMessage

func (*BatchEvaluationResponse) ProtoMessage()

func (*BatchEvaluationResponse) ProtoReflect

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

func (*BatchEvaluationResponse) Reset

func (x *BatchEvaluationResponse) Reset()

func (*BatchEvaluationResponse) String

func (x *BatchEvaluationResponse) String() string

type BooleanEvaluationResponse

type BooleanEvaluationResponse struct {
	Enabled               bool                   `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Reason                EvaluationReason       `protobuf:"varint,2,opt,name=reason,proto3,enum=flipt.evaluation.EvaluationReason" json:"reason,omitempty"`
	RequestId             string                 `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	RequestDurationMillis float64                `` /* 128-byte string literal not displayed */
	Timestamp             *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	FlagKey               string                 `protobuf:"bytes,6,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"`
	// contains filtered or unexported fields
}

func (*BooleanEvaluationResponse) Descriptor deprecated

func (*BooleanEvaluationResponse) Descriptor() ([]byte, []int)

Deprecated: Use BooleanEvaluationResponse.ProtoReflect.Descriptor instead.

func (*BooleanEvaluationResponse) GetEnabled

func (x *BooleanEvaluationResponse) GetEnabled() bool

func (*BooleanEvaluationResponse) GetFlagKey

func (x *BooleanEvaluationResponse) GetFlagKey() string

func (*BooleanEvaluationResponse) GetReason

func (*BooleanEvaluationResponse) GetRequestDurationMillis

func (x *BooleanEvaluationResponse) GetRequestDurationMillis() float64

func (*BooleanEvaluationResponse) GetRequestId

func (x *BooleanEvaluationResponse) GetRequestId() string

func (*BooleanEvaluationResponse) GetTimestamp

func (x *BooleanEvaluationResponse) GetTimestamp() *timestamppb.Timestamp

func (*BooleanEvaluationResponse) ProtoMessage

func (*BooleanEvaluationResponse) ProtoMessage()

func (*BooleanEvaluationResponse) ProtoReflect

func (*BooleanEvaluationResponse) Reset

func (x *BooleanEvaluationResponse) Reset()

func (*BooleanEvaluationResponse) String

func (x *BooleanEvaluationResponse) String() string

type ErrorEvaluationReason

type ErrorEvaluationReason int32
const (
	ErrorEvaluationReason_UNKNOWN_ERROR_EVALUATION_REASON   ErrorEvaluationReason = 0
	ErrorEvaluationReason_NOT_FOUND_ERROR_EVALUATION_REASON ErrorEvaluationReason = 1
)

func (ErrorEvaluationReason) Descriptor

func (ErrorEvaluationReason) Enum

func (ErrorEvaluationReason) EnumDescriptor deprecated

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

Deprecated: Use ErrorEvaluationReason.Descriptor instead.

func (ErrorEvaluationReason) Number

func (ErrorEvaluationReason) String

func (x ErrorEvaluationReason) String() string

func (ErrorEvaluationReason) Type

type ErrorEvaluationResponse

type ErrorEvaluationResponse struct {
	FlagKey      string                `protobuf:"bytes,1,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"`
	NamespaceKey string                `protobuf:"bytes,2,opt,name=namespace_key,json=namespaceKey,proto3" json:"namespace_key,omitempty"`
	Reason       ErrorEvaluationReason `protobuf:"varint,3,opt,name=reason,proto3,enum=flipt.evaluation.ErrorEvaluationReason" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorEvaluationResponse) Descriptor deprecated

func (*ErrorEvaluationResponse) Descriptor() ([]byte, []int)

Deprecated: Use ErrorEvaluationResponse.ProtoReflect.Descriptor instead.

func (*ErrorEvaluationResponse) GetFlagKey

func (x *ErrorEvaluationResponse) GetFlagKey() string

func (*ErrorEvaluationResponse) GetNamespaceKey

func (x *ErrorEvaluationResponse) GetNamespaceKey() string

func (*ErrorEvaluationResponse) GetReason

func (*ErrorEvaluationResponse) ProtoMessage

func (*ErrorEvaluationResponse) ProtoMessage()

func (*ErrorEvaluationResponse) ProtoReflect

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

func (*ErrorEvaluationResponse) Reset

func (x *ErrorEvaluationResponse) Reset()

func (*ErrorEvaluationResponse) String

func (x *ErrorEvaluationResponse) String() string

type EvaluationConstraint

type EvaluationConstraint struct {
	Id       string                             `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type     EvaluationConstraintComparisonType `protobuf:"varint,2,opt,name=type,proto3,enum=flipt.evaluation.EvaluationConstraintComparisonType" json:"type,omitempty"`
	Property string                             `protobuf:"bytes,3,opt,name=property,proto3" json:"property,omitempty"`
	Operator string                             `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"`
	Value    string                             `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationConstraint) Descriptor deprecated

func (*EvaluationConstraint) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationConstraint.ProtoReflect.Descriptor instead.

func (*EvaluationConstraint) GetId

func (x *EvaluationConstraint) GetId() string

func (*EvaluationConstraint) GetOperator

func (x *EvaluationConstraint) GetOperator() string

func (*EvaluationConstraint) GetProperty

func (x *EvaluationConstraint) GetProperty() string

func (*EvaluationConstraint) GetType

func (*EvaluationConstraint) GetValue

func (x *EvaluationConstraint) GetValue() string

func (*EvaluationConstraint) ProtoMessage

func (*EvaluationConstraint) ProtoMessage()

func (*EvaluationConstraint) ProtoReflect

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

func (*EvaluationConstraint) Reset

func (x *EvaluationConstraint) Reset()

func (*EvaluationConstraint) String

func (x *EvaluationConstraint) String() string

type EvaluationConstraintComparisonType

type EvaluationConstraintComparisonType int32
const (
	EvaluationConstraintComparisonType_UNKNOWN_CONSTRAINT_COMPARISON_TYPE   EvaluationConstraintComparisonType = 0
	EvaluationConstraintComparisonType_STRING_CONSTRAINT_COMPARISON_TYPE    EvaluationConstraintComparisonType = 1
	EvaluationConstraintComparisonType_NUMBER_CONSTRAINT_COMPARISON_TYPE    EvaluationConstraintComparisonType = 2
	EvaluationConstraintComparisonType_BOOLEAN_CONSTRAINT_COMPARISON_TYPE   EvaluationConstraintComparisonType = 3
	EvaluationConstraintComparisonType_DATETIME_CONSTRAINT_COMPARISON_TYPE  EvaluationConstraintComparisonType = 4
	EvaluationConstraintComparisonType_ENTITY_ID_CONSTRAINT_COMPARISON_TYPE EvaluationConstraintComparisonType = 5
)

func (EvaluationConstraintComparisonType) Descriptor

func (EvaluationConstraintComparisonType) Enum

func (EvaluationConstraintComparisonType) EnumDescriptor deprecated

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

Deprecated: Use EvaluationConstraintComparisonType.Descriptor instead.

func (EvaluationConstraintComparisonType) Number

func (EvaluationConstraintComparisonType) String

func (EvaluationConstraintComparisonType) Type

type EvaluationDistribution

type EvaluationDistribution struct {
	Id                string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RuleId            string  `protobuf:"bytes,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"`
	VariantId         string  `protobuf:"bytes,3,opt,name=variant_id,json=variantId,proto3" json:"variant_id,omitempty"`
	VariantKey        string  `protobuf:"bytes,4,opt,name=variant_key,json=variantKey,proto3" json:"variant_key,omitempty"`
	VariantAttachment string  `protobuf:"bytes,5,opt,name=variant_attachment,json=variantAttachment,proto3" json:"variant_attachment,omitempty"`
	Rollout           float32 `protobuf:"fixed32,6,opt,name=rollout,proto3" json:"rollout,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationDistribution) Descriptor deprecated

func (*EvaluationDistribution) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationDistribution.ProtoReflect.Descriptor instead.

func (*EvaluationDistribution) GetId

func (x *EvaluationDistribution) GetId() string

func (*EvaluationDistribution) GetRollout

func (x *EvaluationDistribution) GetRollout() float32

func (*EvaluationDistribution) GetRuleId

func (x *EvaluationDistribution) GetRuleId() string

func (*EvaluationDistribution) GetVariantAttachment

func (x *EvaluationDistribution) GetVariantAttachment() string

func (*EvaluationDistribution) GetVariantId

func (x *EvaluationDistribution) GetVariantId() string

func (*EvaluationDistribution) GetVariantKey

func (x *EvaluationDistribution) GetVariantKey() string

func (*EvaluationDistribution) ProtoMessage

func (*EvaluationDistribution) ProtoMessage()

func (*EvaluationDistribution) ProtoReflect

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

func (*EvaluationDistribution) Reset

func (x *EvaluationDistribution) Reset()

func (*EvaluationDistribution) String

func (x *EvaluationDistribution) String() string

type EvaluationFlag

type EvaluationFlag struct {
	Key            string                 `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Name           string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description    string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Enabled        bool                   `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Type           EvaluationFlagType     `protobuf:"varint,5,opt,name=type,proto3,enum=flipt.evaluation.EvaluationFlagType" json:"type,omitempty"`
	CreatedAt      *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt      *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Rules          []*EvaluationRule      `protobuf:"bytes,8,rep,name=rules,proto3" json:"rules,omitempty"`
	Rollouts       []*EvaluationRollout   `protobuf:"bytes,9,rep,name=rollouts,proto3" json:"rollouts,omitempty"`
	DefaultVariant *EvaluationVariant     `protobuf:"bytes,10,opt,name=default_variant,json=defaultVariant,proto3,oneof" json:"default_variant,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationFlag) Descriptor deprecated

func (*EvaluationFlag) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationFlag.ProtoReflect.Descriptor instead.

func (*EvaluationFlag) GetCreatedAt

func (x *EvaluationFlag) GetCreatedAt() *timestamppb.Timestamp

func (*EvaluationFlag) GetDefaultVariant

func (x *EvaluationFlag) GetDefaultVariant() *EvaluationVariant

func (*EvaluationFlag) GetDescription

func (x *EvaluationFlag) GetDescription() string

func (*EvaluationFlag) GetEnabled

func (x *EvaluationFlag) GetEnabled() bool

func (*EvaluationFlag) GetKey

func (x *EvaluationFlag) GetKey() string

func (*EvaluationFlag) GetName

func (x *EvaluationFlag) GetName() string

func (*EvaluationFlag) GetRollouts

func (x *EvaluationFlag) GetRollouts() []*EvaluationRollout

func (*EvaluationFlag) GetRules

func (x *EvaluationFlag) GetRules() []*EvaluationRule

func (*EvaluationFlag) GetType

func (x *EvaluationFlag) GetType() EvaluationFlagType

func (*EvaluationFlag) GetUpdatedAt

func (x *EvaluationFlag) GetUpdatedAt() *timestamppb.Timestamp

func (*EvaluationFlag) ProtoMessage

func (*EvaluationFlag) ProtoMessage()

func (*EvaluationFlag) ProtoReflect

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

func (*EvaluationFlag) Reset

func (x *EvaluationFlag) Reset()

func (*EvaluationFlag) String

func (x *EvaluationFlag) String() string

type EvaluationFlagType

type EvaluationFlagType int32
const (
	EvaluationFlagType_VARIANT_FLAG_TYPE EvaluationFlagType = 0
	EvaluationFlagType_BOOLEAN_FLAG_TYPE EvaluationFlagType = 1
)

func (EvaluationFlagType) Descriptor

func (EvaluationFlagType) Enum

func (EvaluationFlagType) EnumDescriptor deprecated

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

Deprecated: Use EvaluationFlagType.Descriptor instead.

func (EvaluationFlagType) Number

func (EvaluationFlagType) String

func (x EvaluationFlagType) String() string

func (EvaluationFlagType) Type

type EvaluationNamespace

type EvaluationNamespace struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationNamespace) Descriptor deprecated

func (*EvaluationNamespace) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationNamespace.ProtoReflect.Descriptor instead.

func (*EvaluationNamespace) GetKey

func (x *EvaluationNamespace) GetKey() string

func (*EvaluationNamespace) ProtoMessage

func (*EvaluationNamespace) ProtoMessage()

func (*EvaluationNamespace) ProtoReflect

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

func (*EvaluationNamespace) Reset

func (x *EvaluationNamespace) Reset()

func (*EvaluationNamespace) String

func (x *EvaluationNamespace) String() string

type EvaluationNamespaceSnapshot

type EvaluationNamespaceSnapshot struct {
	Namespace *EvaluationNamespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Flags     []*EvaluationFlag    `protobuf:"bytes,2,rep,name=flags,proto3" json:"flags,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationNamespaceSnapshot) Descriptor deprecated

func (*EvaluationNamespaceSnapshot) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationNamespaceSnapshot.ProtoReflect.Descriptor instead.

func (*EvaluationNamespaceSnapshot) GetFlags

func (*EvaluationNamespaceSnapshot) GetNamespace

func (*EvaluationNamespaceSnapshot) ProtoMessage

func (*EvaluationNamespaceSnapshot) ProtoMessage()

func (*EvaluationNamespaceSnapshot) ProtoReflect

func (*EvaluationNamespaceSnapshot) Reset

func (x *EvaluationNamespaceSnapshot) Reset()

func (*EvaluationNamespaceSnapshot) String

func (x *EvaluationNamespaceSnapshot) String() string

type EvaluationNamespaceSnapshotRequest

type EvaluationNamespaceSnapshotRequest struct {
	Key       string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationNamespaceSnapshotRequest) Descriptor deprecated

func (*EvaluationNamespaceSnapshotRequest) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationNamespaceSnapshotRequest.ProtoReflect.Descriptor instead.

func (*EvaluationNamespaceSnapshotRequest) GetKey

func (*EvaluationNamespaceSnapshotRequest) GetReference

func (x *EvaluationNamespaceSnapshotRequest) GetReference() string

func (*EvaluationNamespaceSnapshotRequest) ProtoMessage

func (*EvaluationNamespaceSnapshotRequest) ProtoMessage()

func (*EvaluationNamespaceSnapshotRequest) ProtoReflect

func (*EvaluationNamespaceSnapshotRequest) Reset

func (*EvaluationNamespaceSnapshotRequest) String

type EvaluationReason

type EvaluationReason int32
const (
	EvaluationReason_UNKNOWN_EVALUATION_REASON       EvaluationReason = 0
	EvaluationReason_FLAG_DISABLED_EVALUATION_REASON EvaluationReason = 1
	EvaluationReason_MATCH_EVALUATION_REASON         EvaluationReason = 2
	EvaluationReason_DEFAULT_EVALUATION_REASON       EvaluationReason = 3
)

func (EvaluationReason) Descriptor

func (EvaluationReason) Enum

func (EvaluationReason) EnumDescriptor deprecated

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

Deprecated: Use EvaluationReason.Descriptor instead.

func (EvaluationReason) Number

func (EvaluationReason) String

func (x EvaluationReason) String() string

func (EvaluationReason) Type

type EvaluationRequest

type EvaluationRequest struct {
	RequestId    string            `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	NamespaceKey string            `protobuf:"bytes,2,opt,name=namespace_key,json=namespaceKey,proto3" json:"namespace_key,omitempty"`
	FlagKey      string            `protobuf:"bytes,3,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"`
	EntityId     string            `protobuf:"bytes,4,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	Context      map[string]string `` /* 155-byte string literal not displayed */
	Reference    string            `protobuf:"bytes,6,opt,name=reference,proto3" json:"reference,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationRequest) Descriptor deprecated

func (*EvaluationRequest) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationRequest.ProtoReflect.Descriptor instead.

func (*EvaluationRequest) GetContext

func (x *EvaluationRequest) GetContext() map[string]string

func (*EvaluationRequest) GetEntityId

func (x *EvaluationRequest) GetEntityId() string

func (*EvaluationRequest) GetFlagKey

func (x *EvaluationRequest) GetFlagKey() string

func (*EvaluationRequest) GetNamespaceKey

func (x *EvaluationRequest) GetNamespaceKey() string

func (*EvaluationRequest) GetReference

func (x *EvaluationRequest) GetReference() string

func (*EvaluationRequest) GetRequestId

func (x *EvaluationRequest) GetRequestId() string

func (*EvaluationRequest) ProtoMessage

func (*EvaluationRequest) ProtoMessage()

func (*EvaluationRequest) ProtoReflect

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

func (*EvaluationRequest) Reset

func (x *EvaluationRequest) Reset()

func (*EvaluationRequest) String

func (x *EvaluationRequest) String() string

type EvaluationResponse

type EvaluationResponse struct {
	Type EvaluationResponseType `protobuf:"varint,1,opt,name=type,proto3,enum=flipt.evaluation.EvaluationResponseType" json:"type,omitempty"`
	// Types that are assignable to Response:
	//
	//	*EvaluationResponse_BooleanResponse
	//	*EvaluationResponse_VariantResponse
	//	*EvaluationResponse_ErrorResponse
	Response isEvaluationResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*EvaluationResponse) Descriptor deprecated

func (*EvaluationResponse) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationResponse.ProtoReflect.Descriptor instead.

func (*EvaluationResponse) GetBooleanResponse

func (x *EvaluationResponse) GetBooleanResponse() *BooleanEvaluationResponse

func (*EvaluationResponse) GetErrorResponse

func (x *EvaluationResponse) GetErrorResponse() *ErrorEvaluationResponse

func (*EvaluationResponse) GetResponse

func (m *EvaluationResponse) GetResponse() isEvaluationResponse_Response

func (*EvaluationResponse) GetType

func (*EvaluationResponse) GetVariantResponse

func (x *EvaluationResponse) GetVariantResponse() *VariantEvaluationResponse

func (*EvaluationResponse) ProtoMessage

func (*EvaluationResponse) ProtoMessage()

func (*EvaluationResponse) ProtoReflect

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

func (*EvaluationResponse) Reset

func (x *EvaluationResponse) Reset()

func (*EvaluationResponse) String

func (x *EvaluationResponse) String() string

type EvaluationResponseType

type EvaluationResponseType int32
const (
	EvaluationResponseType_VARIANT_EVALUATION_RESPONSE_TYPE EvaluationResponseType = 0
	EvaluationResponseType_BOOLEAN_EVALUATION_RESPONSE_TYPE EvaluationResponseType = 1
	EvaluationResponseType_ERROR_EVALUATION_RESPONSE_TYPE   EvaluationResponseType = 2
)

func (EvaluationResponseType) Descriptor

func (EvaluationResponseType) Enum

func (EvaluationResponseType) EnumDescriptor deprecated

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

Deprecated: Use EvaluationResponseType.Descriptor instead.

func (EvaluationResponseType) Number

func (EvaluationResponseType) String

func (x EvaluationResponseType) String() string

func (EvaluationResponseType) Type

type EvaluationResponse_BooleanResponse

type EvaluationResponse_BooleanResponse struct {
	BooleanResponse *BooleanEvaluationResponse `protobuf:"bytes,2,opt,name=boolean_response,json=booleanResponse,proto3,oneof"`
}

type EvaluationResponse_ErrorResponse

type EvaluationResponse_ErrorResponse struct {
	ErrorResponse *ErrorEvaluationResponse `protobuf:"bytes,4,opt,name=error_response,json=errorResponse,proto3,oneof"`
}

type EvaluationResponse_VariantResponse

type EvaluationResponse_VariantResponse struct {
	VariantResponse *VariantEvaluationResponse `protobuf:"bytes,3,opt,name=variant_response,json=variantResponse,proto3,oneof"`
}

type EvaluationRollout

type EvaluationRollout struct {
	Type EvaluationRolloutType `protobuf:"varint,1,opt,name=type,proto3,enum=flipt.evaluation.EvaluationRolloutType" json:"type,omitempty"`
	Rank int32                 `protobuf:"varint,2,opt,name=rank,proto3" json:"rank,omitempty"`
	// Types that are assignable to Rule:
	//
	//	*EvaluationRollout_Segment
	//	*EvaluationRollout_Threshold
	Rule isEvaluationRollout_Rule `protobuf_oneof:"rule"`
	// contains filtered or unexported fields
}

func (*EvaluationRollout) Descriptor deprecated

func (*EvaluationRollout) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationRollout.ProtoReflect.Descriptor instead.

func (*EvaluationRollout) GetRank

func (x *EvaluationRollout) GetRank() int32

func (*EvaluationRollout) GetRule

func (m *EvaluationRollout) GetRule() isEvaluationRollout_Rule

func (*EvaluationRollout) GetSegment

func (*EvaluationRollout) GetThreshold

func (x *EvaluationRollout) GetThreshold() *EvaluationRolloutThreshold

func (*EvaluationRollout) GetType

func (*EvaluationRollout) ProtoMessage

func (*EvaluationRollout) ProtoMessage()

func (*EvaluationRollout) ProtoReflect

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

func (*EvaluationRollout) Reset

func (x *EvaluationRollout) Reset()

func (*EvaluationRollout) String

func (x *EvaluationRollout) String() string

type EvaluationRolloutSegment

type EvaluationRolloutSegment struct {
	Value           bool                      `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	SegmentOperator EvaluationSegmentOperator `` /* 155-byte string literal not displayed */
	Segments        []*EvaluationSegment      `protobuf:"bytes,3,rep,name=segments,proto3" json:"segments,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationRolloutSegment) Descriptor deprecated

func (*EvaluationRolloutSegment) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationRolloutSegment.ProtoReflect.Descriptor instead.

func (*EvaluationRolloutSegment) GetSegmentOperator

func (x *EvaluationRolloutSegment) GetSegmentOperator() EvaluationSegmentOperator

func (*EvaluationRolloutSegment) GetSegments

func (x *EvaluationRolloutSegment) GetSegments() []*EvaluationSegment

func (*EvaluationRolloutSegment) GetValue

func (x *EvaluationRolloutSegment) GetValue() bool

func (*EvaluationRolloutSegment) ProtoMessage

func (*EvaluationRolloutSegment) ProtoMessage()

func (*EvaluationRolloutSegment) ProtoReflect

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

func (*EvaluationRolloutSegment) Reset

func (x *EvaluationRolloutSegment) Reset()

func (*EvaluationRolloutSegment) String

func (x *EvaluationRolloutSegment) String() string

type EvaluationRolloutThreshold

type EvaluationRolloutThreshold struct {
	Percentage float32 `protobuf:"fixed32,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
	Value      bool    `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationRolloutThreshold) Descriptor deprecated

func (*EvaluationRolloutThreshold) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationRolloutThreshold.ProtoReflect.Descriptor instead.

func (*EvaluationRolloutThreshold) GetPercentage

func (x *EvaluationRolloutThreshold) GetPercentage() float32

func (*EvaluationRolloutThreshold) GetValue

func (x *EvaluationRolloutThreshold) GetValue() bool

func (*EvaluationRolloutThreshold) ProtoMessage

func (*EvaluationRolloutThreshold) ProtoMessage()

func (*EvaluationRolloutThreshold) ProtoReflect

func (*EvaluationRolloutThreshold) Reset

func (x *EvaluationRolloutThreshold) Reset()

func (*EvaluationRolloutThreshold) String

func (x *EvaluationRolloutThreshold) String() string

type EvaluationRolloutType

type EvaluationRolloutType int32
const (
	EvaluationRolloutType_UNKNOWN_ROLLOUT_TYPE   EvaluationRolloutType = 0
	EvaluationRolloutType_SEGMENT_ROLLOUT_TYPE   EvaluationRolloutType = 1
	EvaluationRolloutType_THRESHOLD_ROLLOUT_TYPE EvaluationRolloutType = 2
)

func (EvaluationRolloutType) Descriptor

func (EvaluationRolloutType) Enum

func (EvaluationRolloutType) EnumDescriptor deprecated

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

Deprecated: Use EvaluationRolloutType.Descriptor instead.

func (EvaluationRolloutType) Number

func (EvaluationRolloutType) String

func (x EvaluationRolloutType) String() string

func (EvaluationRolloutType) Type

type EvaluationRollout_Segment

type EvaluationRollout_Segment struct {
	Segment *EvaluationRolloutSegment `protobuf:"bytes,3,opt,name=segment,proto3,oneof"`
}

type EvaluationRollout_Threshold

type EvaluationRollout_Threshold struct {
	Threshold *EvaluationRolloutThreshold `protobuf:"bytes,4,opt,name=threshold,proto3,oneof"`
}

type EvaluationRule

type EvaluationRule struct {
	Id              string                    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Segments        []*EvaluationSegment      `protobuf:"bytes,2,rep,name=segments,proto3" json:"segments,omitempty"`
	Rank            int32                     `protobuf:"varint,3,opt,name=rank,proto3" json:"rank,omitempty"`
	SegmentOperator EvaluationSegmentOperator `` /* 155-byte string literal not displayed */
	Distributions   []*EvaluationDistribution `protobuf:"bytes,5,rep,name=distributions,proto3" json:"distributions,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationRule) Descriptor deprecated

func (*EvaluationRule) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationRule.ProtoReflect.Descriptor instead.

func (*EvaluationRule) GetDistributions

func (x *EvaluationRule) GetDistributions() []*EvaluationDistribution

func (*EvaluationRule) GetId

func (x *EvaluationRule) GetId() string

func (*EvaluationRule) GetRank

func (x *EvaluationRule) GetRank() int32

func (*EvaluationRule) GetSegmentOperator

func (x *EvaluationRule) GetSegmentOperator() EvaluationSegmentOperator

func (*EvaluationRule) GetSegments

func (x *EvaluationRule) GetSegments() []*EvaluationSegment

func (*EvaluationRule) ProtoMessage

func (*EvaluationRule) ProtoMessage()

func (*EvaluationRule) ProtoReflect

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

func (*EvaluationRule) Reset

func (x *EvaluationRule) Reset()

func (*EvaluationRule) String

func (x *EvaluationRule) String() string

type EvaluationSegment

type EvaluationSegment struct {
	Key         string                     `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Name        string                     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string                     `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	MatchType   EvaluationSegmentMatchType `` /* 138-byte string literal not displayed */
	CreatedAt   *timestamppb.Timestamp     `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp     `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Constraints []*EvaluationConstraint    `protobuf:"bytes,7,rep,name=constraints,proto3" json:"constraints,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationSegment) Descriptor deprecated

func (*EvaluationSegment) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationSegment.ProtoReflect.Descriptor instead.

func (*EvaluationSegment) GetConstraints

func (x *EvaluationSegment) GetConstraints() []*EvaluationConstraint

func (*EvaluationSegment) GetCreatedAt

func (x *EvaluationSegment) GetCreatedAt() *timestamppb.Timestamp

func (*EvaluationSegment) GetDescription

func (x *EvaluationSegment) GetDescription() string

func (*EvaluationSegment) GetKey

func (x *EvaluationSegment) GetKey() string

func (*EvaluationSegment) GetMatchType

func (*EvaluationSegment) GetName

func (x *EvaluationSegment) GetName() string

func (*EvaluationSegment) GetUpdatedAt

func (x *EvaluationSegment) GetUpdatedAt() *timestamppb.Timestamp

func (*EvaluationSegment) ProtoMessage

func (*EvaluationSegment) ProtoMessage()

func (*EvaluationSegment) ProtoReflect

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

func (*EvaluationSegment) Reset

func (x *EvaluationSegment) Reset()

func (*EvaluationSegment) String

func (x *EvaluationSegment) String() string

type EvaluationSegmentMatchType

type EvaluationSegmentMatchType int32
const (
	EvaluationSegmentMatchType_ALL_SEGMENT_MATCH_TYPE EvaluationSegmentMatchType = 0
	EvaluationSegmentMatchType_ANY_SEGMENT_MATCH_TYPE EvaluationSegmentMatchType = 1
)

func (EvaluationSegmentMatchType) Descriptor

func (EvaluationSegmentMatchType) Enum

func (EvaluationSegmentMatchType) EnumDescriptor deprecated

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

Deprecated: Use EvaluationSegmentMatchType.Descriptor instead.

func (EvaluationSegmentMatchType) Number

func (EvaluationSegmentMatchType) String

func (EvaluationSegmentMatchType) Type

type EvaluationSegmentOperator

type EvaluationSegmentOperator int32
const (
	EvaluationSegmentOperator_OR_SEGMENT_OPERATOR  EvaluationSegmentOperator = 0
	EvaluationSegmentOperator_AND_SEGMENT_OPERATOR EvaluationSegmentOperator = 1
)

func (EvaluationSegmentOperator) Descriptor

func (EvaluationSegmentOperator) Enum

func (EvaluationSegmentOperator) EnumDescriptor deprecated

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

Deprecated: Use EvaluationSegmentOperator.Descriptor instead.

func (EvaluationSegmentOperator) Number

func (EvaluationSegmentOperator) String

func (x EvaluationSegmentOperator) String() string

func (EvaluationSegmentOperator) Type

type EvaluationVariant

type EvaluationVariant struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Key        string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Attachment string `protobuf:"bytes,3,opt,name=attachment,proto3" json:"attachment,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluationVariant) Descriptor deprecated

func (*EvaluationVariant) Descriptor() ([]byte, []int)

Deprecated: Use EvaluationVariant.ProtoReflect.Descriptor instead.

func (*EvaluationVariant) GetAttachment

func (x *EvaluationVariant) GetAttachment() string

func (*EvaluationVariant) GetId

func (x *EvaluationVariant) GetId() string

func (*EvaluationVariant) GetKey

func (x *EvaluationVariant) GetKey() string

func (*EvaluationVariant) ProtoMessage

func (*EvaluationVariant) ProtoMessage()

func (*EvaluationVariant) ProtoReflect

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

func (*EvaluationVariant) Reset

func (x *EvaluationVariant) Reset()

func (*EvaluationVariant) String

func (x *EvaluationVariant) String() string

type VariantEvaluationResponse

type VariantEvaluationResponse struct {
	Match                 bool                   `protobuf:"varint,1,opt,name=match,proto3" json:"match,omitempty"`
	SegmentKeys           []string               `protobuf:"bytes,2,rep,name=segment_keys,json=segmentKeys,proto3" json:"segment_keys,omitempty"`
	Reason                EvaluationReason       `protobuf:"varint,3,opt,name=reason,proto3,enum=flipt.evaluation.EvaluationReason" json:"reason,omitempty"`
	VariantKey            string                 `protobuf:"bytes,4,opt,name=variant_key,json=variantKey,proto3" json:"variant_key,omitempty"`
	VariantAttachment     string                 `protobuf:"bytes,5,opt,name=variant_attachment,json=variantAttachment,proto3" json:"variant_attachment,omitempty"`
	RequestId             string                 `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	RequestDurationMillis float64                `` /* 128-byte string literal not displayed */
	Timestamp             *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	FlagKey               string                 `protobuf:"bytes,9,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"`
	// contains filtered or unexported fields
}

func (*VariantEvaluationResponse) Descriptor deprecated

func (*VariantEvaluationResponse) Descriptor() ([]byte, []int)

Deprecated: Use VariantEvaluationResponse.ProtoReflect.Descriptor instead.

func (*VariantEvaluationResponse) GetFlagKey

func (x *VariantEvaluationResponse) GetFlagKey() string

func (*VariantEvaluationResponse) GetMatch

func (x *VariantEvaluationResponse) GetMatch() bool

func (*VariantEvaluationResponse) GetReason

func (*VariantEvaluationResponse) GetRequestDurationMillis

func (x *VariantEvaluationResponse) GetRequestDurationMillis() float64

func (*VariantEvaluationResponse) GetRequestId

func (x *VariantEvaluationResponse) GetRequestId() string

func (*VariantEvaluationResponse) GetSegmentKeys

func (x *VariantEvaluationResponse) GetSegmentKeys() []string

func (*VariantEvaluationResponse) GetTimestamp

func (x *VariantEvaluationResponse) GetTimestamp() *timestamppb.Timestamp

func (*VariantEvaluationResponse) GetVariantAttachment

func (x *VariantEvaluationResponse) GetVariantAttachment() string

func (*VariantEvaluationResponse) GetVariantKey

func (x *VariantEvaluationResponse) GetVariantKey() string

func (*VariantEvaluationResponse) ProtoMessage

func (*VariantEvaluationResponse) ProtoMessage()

func (*VariantEvaluationResponse) ProtoReflect

func (*VariantEvaluationResponse) Reset

func (x *VariantEvaluationResponse) Reset()

func (*VariantEvaluationResponse) String

func (x *VariantEvaluationResponse) String() string

Jump to

Keyboard shortcuts

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