evaluation

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 17 Imported by: 11

Documentation

Overview

Package evaluation is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EvaluationService_Boolean_FullMethodName = "/flipt.evaluation.EvaluationService/Boolean"
	EvaluationService_Variant_FullMethodName = "/flipt.evaluation.EvaluationService/Variant"
	EvaluationService_Batch_FullMethodName   = "/flipt.evaluation.EvaluationService/Batch"
)
View Source
const (
	DataService_EvaluationSnapshotNamespace_FullMethodName = "/flipt.evaluation.DataService/EvaluationSnapshotNamespace"
)

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 DataService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "flipt.evaluation.DataService",
	HandlerType: (*DataServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EvaluationSnapshotNamespace",
			Handler:    _DataService_EvaluationSnapshotNamespace_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "evaluation/evaluation.proto",
}

DataService_ServiceDesc is the grpc.ServiceDesc for DataService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var EvaluationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "flipt.evaluation.EvaluationService",
	HandlerType: (*EvaluationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Boolean",
			Handler:    _EvaluationService_Boolean_Handler,
		},
		{
			MethodName: "Variant",
			Handler:    _EvaluationService_Variant_Handler,
		},
		{
			MethodName: "Batch",
			Handler:    _EvaluationService_Batch_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "evaluation/evaluation.proto",
}

EvaluationService_ServiceDesc is the grpc.ServiceDesc for EvaluationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_evaluation_evaluation_proto protoreflect.FileDescriptor

Functions

func RegisterDataServiceHandler added in v1.35.0

func RegisterDataServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterDataServiceHandler registers the http handlers for service DataService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterDataServiceHandlerClient added in v1.35.0

func RegisterDataServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DataServiceClient) error

RegisterDataServiceHandlerClient registers the http handlers for service DataService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DataServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DataServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DataServiceClient" to call the correct interceptors.

func RegisterDataServiceHandlerFromEndpoint added in v1.35.0

func RegisterDataServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterDataServiceHandlerFromEndpoint is same as RegisterDataServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterDataServiceHandlerServer added in v1.35.0

func RegisterDataServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DataServiceServer) error

RegisterDataServiceHandlerServer registers the http handlers for service DataService to "mux". UnaryRPC :call DataServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDataServiceHandlerFromEndpoint instead.

func RegisterDataServiceServer added in v1.35.0

func RegisterDataServiceServer(s grpc.ServiceRegistrar, srv DataServiceServer)

func RegisterEvaluationServiceHandler

func RegisterEvaluationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEvaluationServiceHandler registers the http handlers for service EvaluationService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEvaluationServiceHandlerClient

func RegisterEvaluationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EvaluationServiceClient) error

RegisterEvaluationServiceHandlerClient registers the http handlers for service EvaluationService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EvaluationServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EvaluationServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EvaluationServiceClient" to call the correct interceptors.

func RegisterEvaluationServiceHandlerFromEndpoint

func RegisterEvaluationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEvaluationServiceHandlerFromEndpoint is same as RegisterEvaluationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEvaluationServiceHandlerServer

func RegisterEvaluationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EvaluationServiceServer) error

RegisterEvaluationServiceHandlerServer registers the http handlers for service EvaluationService to "mux". UnaryRPC :call EvaluationServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEvaluationServiceHandlerFromEndpoint instead.

func RegisterEvaluationServiceServer

func RegisterEvaluationServiceServer(s grpc.ServiceRegistrar, srv EvaluationServiceServer)

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) GetNamespaceKeys added in v1.31.0

func (x *BatchEvaluationRequest) GetNamespaceKeys() (keys []string)

func (*BatchEvaluationRequest) GetReference added in v1.35.0

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

func (x *BatchEvaluationRequest) SetRequestIDIfNotBlank(id string) string

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

func (x *BatchEvaluationResponse) SetRequestIDIfNotBlank(id string) string

SetRequestIDIfNotBlank attempts to set the provided ID on the instance If the ID was blank, it returns the ID provided to this call. If the ID was not blank, it returns the ID found on the instance.

func (*BatchEvaluationResponse) SetTimestamps

func (x *BatchEvaluationResponse) SetTimestamps(start, end time.Time)

SetTimestamps records the start and end times on the target instance.

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 added in v1.30.0

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

func (x *BooleanEvaluationResponse) SetRequestIDIfNotBlank(id string) string

func (*BooleanEvaluationResponse) SetTimestamps

func (x *BooleanEvaluationResponse) SetTimestamps(start, end time.Time)

func (*BooleanEvaluationResponse) String

func (x *BooleanEvaluationResponse) String() string

type DataServiceClient added in v1.35.0

type DataServiceClient interface {
	EvaluationSnapshotNamespace(ctx context.Context, in *EvaluationNamespaceSnapshotRequest, opts ...grpc.CallOption) (*EvaluationNamespaceSnapshot, error)
}

DataServiceClient is the client API for DataService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewDataServiceClient added in v1.35.0

func NewDataServiceClient(cc grpc.ClientConnInterface) DataServiceClient

type DataServiceServer added in v1.35.0

type DataServiceServer interface {
	EvaluationSnapshotNamespace(context.Context, *EvaluationNamespaceSnapshotRequest) (*EvaluationNamespaceSnapshot, error)
	// contains filtered or unexported methods
}

DataServiceServer is the server API for DataService service. All implementations must embed UnimplementedDataServiceServer for forward compatibility

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 added in v1.35.0

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 added in v1.35.0

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

Deprecated: Use EvaluationConstraint.ProtoReflect.Descriptor instead.

func (*EvaluationConstraint) GetId added in v1.35.0

func (x *EvaluationConstraint) GetId() string

func (*EvaluationConstraint) GetOperator added in v1.35.0

func (x *EvaluationConstraint) GetOperator() string

func (*EvaluationConstraint) GetProperty added in v1.35.0

func (x *EvaluationConstraint) GetProperty() string

func (*EvaluationConstraint) GetType added in v1.35.0

func (*EvaluationConstraint) GetValue added in v1.35.0

func (x *EvaluationConstraint) GetValue() string

func (*EvaluationConstraint) ProtoMessage added in v1.35.0

func (*EvaluationConstraint) ProtoMessage()

func (*EvaluationConstraint) ProtoReflect added in v1.35.0

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

func (*EvaluationConstraint) Reset added in v1.35.0

func (x *EvaluationConstraint) Reset()

func (*EvaluationConstraint) String added in v1.35.0

func (x *EvaluationConstraint) String() string

type EvaluationConstraintComparisonType added in v1.35.0

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 added in v1.35.0

func (EvaluationConstraintComparisonType) Enum added in v1.35.0

func (EvaluationConstraintComparisonType) EnumDescriptor deprecated added in v1.35.0

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

Deprecated: Use EvaluationConstraintComparisonType.Descriptor instead.

func (EvaluationConstraintComparisonType) Number added in v1.35.0

func (EvaluationConstraintComparisonType) String added in v1.35.0

func (EvaluationConstraintComparisonType) Type added in v1.35.0

type EvaluationDistribution added in v1.35.0

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 added in v1.35.0

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

Deprecated: Use EvaluationDistribution.ProtoReflect.Descriptor instead.

func (*EvaluationDistribution) GetId added in v1.35.0

func (x *EvaluationDistribution) GetId() string

func (*EvaluationDistribution) GetRollout added in v1.35.0

func (x *EvaluationDistribution) GetRollout() float32

func (*EvaluationDistribution) GetRuleId added in v1.35.0

func (x *EvaluationDistribution) GetRuleId() string

func (*EvaluationDistribution) GetVariantAttachment added in v1.35.0

func (x *EvaluationDistribution) GetVariantAttachment() string

func (*EvaluationDistribution) GetVariantId added in v1.35.0

func (x *EvaluationDistribution) GetVariantId() string

func (*EvaluationDistribution) GetVariantKey added in v1.35.0

func (x *EvaluationDistribution) GetVariantKey() string

func (*EvaluationDistribution) ProtoMessage added in v1.35.0

func (*EvaluationDistribution) ProtoMessage()

func (*EvaluationDistribution) ProtoReflect added in v1.35.0

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

func (*EvaluationDistribution) Reset added in v1.35.0

func (x *EvaluationDistribution) Reset()

func (*EvaluationDistribution) String added in v1.35.0

func (x *EvaluationDistribution) String() string

type EvaluationFlag added in v1.35.0

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

func (*EvaluationFlag) Descriptor deprecated added in v1.35.0

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

Deprecated: Use EvaluationFlag.ProtoReflect.Descriptor instead.

func (*EvaluationFlag) GetCreatedAt added in v1.35.0

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

func (*EvaluationFlag) GetDescription added in v1.35.0

func (x *EvaluationFlag) GetDescription() string

func (*EvaluationFlag) GetEnabled added in v1.35.0

func (x *EvaluationFlag) GetEnabled() bool

func (*EvaluationFlag) GetKey added in v1.35.0

func (x *EvaluationFlag) GetKey() string

func (*EvaluationFlag) GetName added in v1.35.0

func (x *EvaluationFlag) GetName() string

func (*EvaluationFlag) GetRollouts added in v1.35.0

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

func (*EvaluationFlag) GetRules added in v1.35.0

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

func (*EvaluationFlag) GetType added in v1.35.0

func (x *EvaluationFlag) GetType() EvaluationFlagType

func (*EvaluationFlag) GetUpdatedAt added in v1.35.0

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

func (*EvaluationFlag) ProtoMessage added in v1.35.0

func (*EvaluationFlag) ProtoMessage()

func (*EvaluationFlag) ProtoReflect added in v1.35.0

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

func (*EvaluationFlag) Reset added in v1.35.0

func (x *EvaluationFlag) Reset()

func (*EvaluationFlag) String added in v1.35.0

func (x *EvaluationFlag) String() string

type EvaluationFlagType added in v1.35.0

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

func (EvaluationFlagType) Descriptor added in v1.35.0

func (EvaluationFlagType) Enum added in v1.35.0

func (EvaluationFlagType) EnumDescriptor deprecated added in v1.35.0

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

Deprecated: Use EvaluationFlagType.Descriptor instead.

func (EvaluationFlagType) Number added in v1.35.0

func (EvaluationFlagType) String added in v1.35.0

func (x EvaluationFlagType) String() string

func (EvaluationFlagType) Type added in v1.35.0

type EvaluationNamespace added in v1.35.0

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

func (*EvaluationNamespace) Descriptor deprecated added in v1.35.0

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

Deprecated: Use EvaluationNamespace.ProtoReflect.Descriptor instead.

func (*EvaluationNamespace) GetKey added in v1.35.0

func (x *EvaluationNamespace) GetKey() string

func (*EvaluationNamespace) ProtoMessage added in v1.35.0

func (*EvaluationNamespace) ProtoMessage()

func (*EvaluationNamespace) ProtoReflect added in v1.35.0

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

func (*EvaluationNamespace) Reset added in v1.35.0

func (x *EvaluationNamespace) Reset()

func (*EvaluationNamespace) String added in v1.35.0

func (x *EvaluationNamespace) String() string

type EvaluationNamespaceSnapshot added in v1.35.0

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 added in v1.35.0

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

Deprecated: Use EvaluationNamespaceSnapshot.ProtoReflect.Descriptor instead.

func (*EvaluationNamespaceSnapshot) GetFlags added in v1.35.0

func (*EvaluationNamespaceSnapshot) GetNamespace added in v1.35.0

func (*EvaluationNamespaceSnapshot) ProtoMessage added in v1.35.0

func (*EvaluationNamespaceSnapshot) ProtoMessage()

func (*EvaluationNamespaceSnapshot) ProtoReflect added in v1.35.0

func (*EvaluationNamespaceSnapshot) Reset added in v1.35.0

func (x *EvaluationNamespaceSnapshot) Reset()

func (*EvaluationNamespaceSnapshot) String added in v1.35.0

func (x *EvaluationNamespaceSnapshot) String() string

type EvaluationNamespaceSnapshotRequest added in v1.35.0

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 added in v1.35.0

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

Deprecated: Use EvaluationNamespaceSnapshotRequest.ProtoReflect.Descriptor instead.

func (*EvaluationNamespaceSnapshotRequest) GetKey added in v1.35.0

func (*EvaluationNamespaceSnapshotRequest) GetReference added in v1.35.0

func (x *EvaluationNamespaceSnapshotRequest) GetReference() string

func (*EvaluationNamespaceSnapshotRequest) ProtoMessage added in v1.35.0

func (*EvaluationNamespaceSnapshotRequest) ProtoMessage()

func (*EvaluationNamespaceSnapshotRequest) ProtoReflect added in v1.35.0

func (*EvaluationNamespaceSnapshotRequest) Reset added in v1.35.0

func (*EvaluationNamespaceSnapshotRequest) String added in v1.35.0

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 added in v1.35.0

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

func (x *EvaluationRequest) SetRequestIDIfNotBlank(id string) string

SetRequestIDIfNotBlank attempts to set the provided ID on the instance If the ID was blank, it returns the ID provided to this call. If the ID was not blank, it returns the ID found on the instance.

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

func (x *EvaluationResponse) GetRequestDurationMillis() float64

func (*EvaluationResponse) GetRequestId

func (x *EvaluationResponse) GetRequestId() string

func (*EvaluationResponse) GetResponse

func (m *EvaluationResponse) GetResponse() isEvaluationResponse_Response

func (*EvaluationResponse) GetTimestamp

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

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

func (x *EvaluationResponse) SetRequestIDIfNotBlank(id string) string

SetRequestIDIfNotBlank attempts to set the provided ID on the instance If the ID was blank, it returns the ID provided to this call. If the ID was not blank, it returns the ID found on the instance.

func (*EvaluationResponse) SetTimestamps

func (x *EvaluationResponse) SetTimestamps(start, end time.Time)

SetTimestamps records the start and end times on the target instance.

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 added in v1.35.0

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 added in v1.35.0

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

Deprecated: Use EvaluationRollout.ProtoReflect.Descriptor instead.

func (*EvaluationRollout) GetRank added in v1.35.0

func (x *EvaluationRollout) GetRank() int32

func (*EvaluationRollout) GetRule added in v1.35.0

func (m *EvaluationRollout) GetRule() isEvaluationRollout_Rule

func (*EvaluationRollout) GetSegment added in v1.35.0

func (*EvaluationRollout) GetThreshold added in v1.35.0

func (x *EvaluationRollout) GetThreshold() *EvaluationRolloutThreshold

func (*EvaluationRollout) GetType added in v1.35.0

func (*EvaluationRollout) ProtoMessage added in v1.35.0

func (*EvaluationRollout) ProtoMessage()

func (*EvaluationRollout) ProtoReflect added in v1.35.0

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

func (*EvaluationRollout) Reset added in v1.35.0

func (x *EvaluationRollout) Reset()

func (*EvaluationRollout) String added in v1.35.0

func (x *EvaluationRollout) String() string

type EvaluationRolloutSegment added in v1.35.0

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 added in v1.35.0

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

Deprecated: Use EvaluationRolloutSegment.ProtoReflect.Descriptor instead.

func (*EvaluationRolloutSegment) GetSegmentOperator added in v1.35.0

func (x *EvaluationRolloutSegment) GetSegmentOperator() EvaluationSegmentOperator

func (*EvaluationRolloutSegment) GetSegments added in v1.35.0

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

func (*EvaluationRolloutSegment) GetValue added in v1.35.0

func (x *EvaluationRolloutSegment) GetValue() bool

func (*EvaluationRolloutSegment) ProtoMessage added in v1.35.0

func (*EvaluationRolloutSegment) ProtoMessage()

func (*EvaluationRolloutSegment) ProtoReflect added in v1.35.0

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

func (*EvaluationRolloutSegment) Reset added in v1.35.0

func (x *EvaluationRolloutSegment) Reset()

func (*EvaluationRolloutSegment) String added in v1.35.0

func (x *EvaluationRolloutSegment) String() string

type EvaluationRolloutThreshold added in v1.35.0

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 added in v1.35.0

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

Deprecated: Use EvaluationRolloutThreshold.ProtoReflect.Descriptor instead.

func (*EvaluationRolloutThreshold) GetPercentage added in v1.35.0

func (x *EvaluationRolloutThreshold) GetPercentage() float32

func (*EvaluationRolloutThreshold) GetValue added in v1.35.0

func (x *EvaluationRolloutThreshold) GetValue() bool

func (*EvaluationRolloutThreshold) ProtoMessage added in v1.35.0

func (*EvaluationRolloutThreshold) ProtoMessage()

func (*EvaluationRolloutThreshold) ProtoReflect added in v1.35.0

func (*EvaluationRolloutThreshold) Reset added in v1.35.0

func (x *EvaluationRolloutThreshold) Reset()

func (*EvaluationRolloutThreshold) String added in v1.35.0

func (x *EvaluationRolloutThreshold) String() string

type EvaluationRolloutType added in v1.35.0

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 added in v1.35.0

func (EvaluationRolloutType) Enum added in v1.35.0

func (EvaluationRolloutType) EnumDescriptor deprecated added in v1.35.0

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

Deprecated: Use EvaluationRolloutType.Descriptor instead.

func (EvaluationRolloutType) Number added in v1.35.0

func (EvaluationRolloutType) String added in v1.35.0

func (x EvaluationRolloutType) String() string

func (EvaluationRolloutType) Type added in v1.35.0

type EvaluationRollout_Segment added in v1.35.0

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

type EvaluationRollout_Threshold added in v1.35.0

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

type EvaluationRule added in v1.35.0

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 added in v1.35.0

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

Deprecated: Use EvaluationRule.ProtoReflect.Descriptor instead.

func (*EvaluationRule) GetDistributions added in v1.35.0

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

func (*EvaluationRule) GetId added in v1.35.0

func (x *EvaluationRule) GetId() string

func (*EvaluationRule) GetRank added in v1.35.0

func (x *EvaluationRule) GetRank() int32

func (*EvaluationRule) GetSegmentOperator added in v1.35.0

func (x *EvaluationRule) GetSegmentOperator() EvaluationSegmentOperator

func (*EvaluationRule) GetSegments added in v1.35.0

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

func (*EvaluationRule) ProtoMessage added in v1.35.0

func (*EvaluationRule) ProtoMessage()

func (*EvaluationRule) ProtoReflect added in v1.35.0

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

func (*EvaluationRule) Reset added in v1.35.0

func (x *EvaluationRule) Reset()

func (*EvaluationRule) String added in v1.35.0

func (x *EvaluationRule) String() string

type EvaluationSegment added in v1.35.0

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 added in v1.35.0

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

Deprecated: Use EvaluationSegment.ProtoReflect.Descriptor instead.

func (*EvaluationSegment) GetConstraints added in v1.35.0

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

func (*EvaluationSegment) GetCreatedAt added in v1.35.0

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

func (*EvaluationSegment) GetDescription added in v1.35.0

func (x *EvaluationSegment) GetDescription() string

func (*EvaluationSegment) GetKey added in v1.35.0

func (x *EvaluationSegment) GetKey() string

func (*EvaluationSegment) GetMatchType added in v1.35.0

func (*EvaluationSegment) GetName added in v1.35.0

func (x *EvaluationSegment) GetName() string

func (*EvaluationSegment) GetUpdatedAt added in v1.35.0

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

func (*EvaluationSegment) ProtoMessage added in v1.35.0

func (*EvaluationSegment) ProtoMessage()

func (*EvaluationSegment) ProtoReflect added in v1.35.0

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

func (*EvaluationSegment) Reset added in v1.35.0

func (x *EvaluationSegment) Reset()

func (*EvaluationSegment) String added in v1.35.0

func (x *EvaluationSegment) String() string

type EvaluationSegmentMatchType added in v1.35.0

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

func (EvaluationSegmentMatchType) Descriptor added in v1.35.0

func (EvaluationSegmentMatchType) Enum added in v1.35.0

func (EvaluationSegmentMatchType) EnumDescriptor deprecated added in v1.35.0

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

Deprecated: Use EvaluationSegmentMatchType.Descriptor instead.

func (EvaluationSegmentMatchType) Number added in v1.35.0

func (EvaluationSegmentMatchType) String added in v1.35.0

func (EvaluationSegmentMatchType) Type added in v1.35.0

type EvaluationSegmentOperator added in v1.35.0

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

func (EvaluationSegmentOperator) Descriptor added in v1.35.0

func (EvaluationSegmentOperator) Enum added in v1.35.0

func (EvaluationSegmentOperator) EnumDescriptor deprecated added in v1.35.0

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

Deprecated: Use EvaluationSegmentOperator.Descriptor instead.

func (EvaluationSegmentOperator) Number added in v1.35.0

func (EvaluationSegmentOperator) String added in v1.35.0

func (x EvaluationSegmentOperator) String() string

func (EvaluationSegmentOperator) Type added in v1.35.0

type EvaluationServiceClient

type EvaluationServiceClient interface {
	Boolean(ctx context.Context, in *EvaluationRequest, opts ...grpc.CallOption) (*BooleanEvaluationResponse, error)
	Variant(ctx context.Context, in *EvaluationRequest, opts ...grpc.CallOption) (*VariantEvaluationResponse, error)
	Batch(ctx context.Context, in *BatchEvaluationRequest, opts ...grpc.CallOption) (*BatchEvaluationResponse, error)
}

EvaluationServiceClient is the client API for EvaluationService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type EvaluationServiceServer

type EvaluationServiceServer interface {
	Boolean(context.Context, *EvaluationRequest) (*BooleanEvaluationResponse, error)
	Variant(context.Context, *EvaluationRequest) (*VariantEvaluationResponse, error)
	Batch(context.Context, *BatchEvaluationRequest) (*BatchEvaluationResponse, error)
	// contains filtered or unexported methods
}

EvaluationServiceServer is the server API for EvaluationService service. All implementations must embed UnimplementedEvaluationServiceServer for forward compatibility

type UnimplementedDataServiceServer added in v1.35.0

type UnimplementedDataServiceServer struct {
}

UnimplementedDataServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDataServiceServer) EvaluationSnapshotNamespace added in v1.35.0

type UnimplementedEvaluationServiceServer

type UnimplementedEvaluationServiceServer struct {
}

UnimplementedEvaluationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEvaluationServiceServer) Batch

func (UnimplementedEvaluationServiceServer) Boolean

func (UnimplementedEvaluationServiceServer) Variant

type UnsafeDataServiceServer added in v1.35.0

type UnsafeDataServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDataServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataServiceServer will result in compilation errors.

type UnsafeEvaluationServiceServer

type UnsafeEvaluationServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEvaluationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EvaluationServiceServer will result in compilation errors.

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 added in v1.30.0

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

func (x *VariantEvaluationResponse) SetRequestIDIfNotBlank(id string) string

func (*VariantEvaluationResponse) SetTimestamps

func (x *VariantEvaluationResponse) SetTimestamps(start, end time.Time)

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