evaluation

package
v1.35.2-20230816140512... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 5 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 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"`
	// contains filtered or unexported fields
}

func (*BatchEvaluationRequest) Descriptor deprecated

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

Deprecated: Use BatchEvaluationRequest.ProtoReflect.Descriptor instead.

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"`
	// 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) 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 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 */
	// 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) 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 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"`
	// contains filtered or unexported fields
}

func (*VariantEvaluationResponse) Descriptor deprecated

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

Deprecated: Use VariantEvaluationResponse.ProtoReflect.Descriptor instead.

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