Documentation ¶
Overview ¶
Package flipt is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterFliptHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFliptHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FliptClient) error
- func RegisterFliptHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFliptHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FliptServer) error
- func RegisterFliptServer(s grpc.ServiceRegistrar, srv FliptServer)
- type BatchEvaluationRequest
- func (*BatchEvaluationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchEvaluationRequest) GetExcludeNotFound() bool
- func (x *BatchEvaluationRequest) GetRequestId() string
- func (x *BatchEvaluationRequest) GetRequests() []*EvaluationRequest
- func (*BatchEvaluationRequest) ProtoMessage()
- func (x *BatchEvaluationRequest) ProtoReflect() protoreflect.Message
- func (x *BatchEvaluationRequest) Reset()
- func (x *BatchEvaluationRequest) String() string
- type BatchEvaluationResponse
- func (*BatchEvaluationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchEvaluationResponse) GetRequestDurationMillis() float64
- func (x *BatchEvaluationResponse) GetRequestId() string
- func (x *BatchEvaluationResponse) GetResponses() []*EvaluationResponse
- func (*BatchEvaluationResponse) ProtoMessage()
- func (x *BatchEvaluationResponse) ProtoReflect() protoreflect.Message
- func (x *BatchEvaluationResponse) Reset()
- func (x *BatchEvaluationResponse) String() string
- type ComparisonType
- func (ComparisonType) Descriptor() protoreflect.EnumDescriptor
- func (x ComparisonType) Enum() *ComparisonType
- func (ComparisonType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComparisonType) Number() protoreflect.EnumNumber
- func (x ComparisonType) String() string
- func (ComparisonType) Type() protoreflect.EnumType
- type Constraint
- func (*Constraint) Descriptor() ([]byte, []int)deprecated
- func (x *Constraint) GetCreatedAt() *timestamppb.Timestamp
- func (x *Constraint) GetId() string
- func (x *Constraint) GetOperator() string
- func (x *Constraint) GetProperty() string
- func (x *Constraint) GetSegmentKey() string
- func (x *Constraint) GetType() ComparisonType
- func (x *Constraint) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Constraint) GetValue() string
- func (*Constraint) ProtoMessage()
- func (x *Constraint) ProtoReflect() protoreflect.Message
- func (x *Constraint) Reset()
- func (x *Constraint) String() string
- type CreateConstraintRequest
- func (*CreateConstraintRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateConstraintRequest) GetOperator() string
- func (x *CreateConstraintRequest) GetProperty() string
- func (x *CreateConstraintRequest) GetSegmentKey() string
- func (x *CreateConstraintRequest) GetType() ComparisonType
- func (x *CreateConstraintRequest) GetValue() string
- func (*CreateConstraintRequest) ProtoMessage()
- func (x *CreateConstraintRequest) ProtoReflect() protoreflect.Message
- func (x *CreateConstraintRequest) Reset()
- func (x *CreateConstraintRequest) String() string
- func (req *CreateConstraintRequest) Validate() error
- type CreateDistributionRequest
- func (*CreateDistributionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDistributionRequest) GetFlagKey() string
- func (x *CreateDistributionRequest) GetRollout() float32
- func (x *CreateDistributionRequest) GetRuleId() string
- func (x *CreateDistributionRequest) GetVariantId() string
- func (*CreateDistributionRequest) ProtoMessage()
- func (x *CreateDistributionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDistributionRequest) Reset()
- func (x *CreateDistributionRequest) String() string
- func (req *CreateDistributionRequest) Validate() error
- type CreateFlagRequest
- func (*CreateFlagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFlagRequest) GetDescription() string
- func (x *CreateFlagRequest) GetEnabled() bool
- func (x *CreateFlagRequest) GetKey() string
- func (x *CreateFlagRequest) GetName() string
- func (*CreateFlagRequest) ProtoMessage()
- func (x *CreateFlagRequest) ProtoReflect() protoreflect.Message
- func (x *CreateFlagRequest) Reset()
- func (x *CreateFlagRequest) String() string
- func (req *CreateFlagRequest) Validate() error
- type CreateRuleRequest
- func (*CreateRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRuleRequest) GetFlagKey() string
- func (x *CreateRuleRequest) GetRank() int32
- func (x *CreateRuleRequest) GetSegmentKey() string
- func (*CreateRuleRequest) ProtoMessage()
- func (x *CreateRuleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRuleRequest) Reset()
- func (x *CreateRuleRequest) String() string
- func (req *CreateRuleRequest) Validate() error
- type CreateSegmentRequest
- func (*CreateSegmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSegmentRequest) GetDescription() string
- func (x *CreateSegmentRequest) GetKey() string
- func (x *CreateSegmentRequest) GetMatchType() MatchType
- func (x *CreateSegmentRequest) GetName() string
- func (*CreateSegmentRequest) ProtoMessage()
- func (x *CreateSegmentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSegmentRequest) Reset()
- func (x *CreateSegmentRequest) String() string
- func (req *CreateSegmentRequest) Validate() error
- type CreateVariantRequest
- func (*CreateVariantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVariantRequest) GetAttachment() string
- func (x *CreateVariantRequest) GetDescription() string
- func (x *CreateVariantRequest) GetFlagKey() string
- func (x *CreateVariantRequest) GetKey() string
- func (x *CreateVariantRequest) GetName() string
- func (*CreateVariantRequest) ProtoMessage()
- func (x *CreateVariantRequest) ProtoReflect() protoreflect.Message
- func (x *CreateVariantRequest) Reset()
- func (x *CreateVariantRequest) String() string
- func (req *CreateVariantRequest) Validate() error
- type DeleteConstraintRequest
- func (*DeleteConstraintRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteConstraintRequest) GetId() string
- func (x *DeleteConstraintRequest) GetSegmentKey() string
- func (*DeleteConstraintRequest) ProtoMessage()
- func (x *DeleteConstraintRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteConstraintRequest) Reset()
- func (x *DeleteConstraintRequest) String() string
- func (req *DeleteConstraintRequest) Validate() error
- type DeleteDistributionRequest
- func (*DeleteDistributionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDistributionRequest) GetFlagKey() string
- func (x *DeleteDistributionRequest) GetId() string
- func (x *DeleteDistributionRequest) GetRuleId() string
- func (x *DeleteDistributionRequest) GetVariantId() string
- func (*DeleteDistributionRequest) ProtoMessage()
- func (x *DeleteDistributionRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDistributionRequest) Reset()
- func (x *DeleteDistributionRequest) String() string
- func (req *DeleteDistributionRequest) Validate() error
- type DeleteFlagRequest
- func (*DeleteFlagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFlagRequest) GetKey() string
- func (*DeleteFlagRequest) ProtoMessage()
- func (x *DeleteFlagRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteFlagRequest) Reset()
- func (x *DeleteFlagRequest) String() string
- func (req *DeleteFlagRequest) Validate() error
- type DeleteRuleRequest
- func (*DeleteRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRuleRequest) GetFlagKey() string
- func (x *DeleteRuleRequest) GetId() string
- func (*DeleteRuleRequest) ProtoMessage()
- func (x *DeleteRuleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRuleRequest) Reset()
- func (x *DeleteRuleRequest) String() string
- func (req *DeleteRuleRequest) Validate() error
- type DeleteSegmentRequest
- func (*DeleteSegmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSegmentRequest) GetKey() string
- func (*DeleteSegmentRequest) ProtoMessage()
- func (x *DeleteSegmentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSegmentRequest) Reset()
- func (x *DeleteSegmentRequest) String() string
- func (req *DeleteSegmentRequest) Validate() error
- type DeleteVariantRequest
- func (*DeleteVariantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteVariantRequest) GetFlagKey() string
- func (x *DeleteVariantRequest) GetId() string
- func (*DeleteVariantRequest) ProtoMessage()
- func (x *DeleteVariantRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteVariantRequest) Reset()
- func (x *DeleteVariantRequest) String() string
- func (req *DeleteVariantRequest) Validate() error
- type Distribution
- func (*Distribution) Descriptor() ([]byte, []int)deprecated
- func (x *Distribution) GetCreatedAt() *timestamppb.Timestamp
- func (x *Distribution) GetId() string
- func (x *Distribution) GetRollout() float32
- func (x *Distribution) GetRuleId() string
- func (x *Distribution) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Distribution) GetVariantId() string
- func (*Distribution) ProtoMessage()
- func (x *Distribution) ProtoReflect() protoreflect.Message
- func (x *Distribution) Reset()
- func (x *Distribution) String() string
- type EvaluationReason
- func (EvaluationReason) Descriptor() protoreflect.EnumDescriptor
- func (x EvaluationReason) Enum() *EvaluationReason
- func (EvaluationReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x EvaluationReason) Number() protoreflect.EnumNumber
- func (x EvaluationReason) String() string
- func (EvaluationReason) Type() protoreflect.EnumType
- type EvaluationRequest
- func (*EvaluationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluationRequest) GetContext() map[string]string
- func (x *EvaluationRequest) GetEntityId() string
- func (x *EvaluationRequest) GetFlagKey() string
- func (x *EvaluationRequest) GetRequestId() string
- func (*EvaluationRequest) ProtoMessage()
- func (x *EvaluationRequest) ProtoReflect() protoreflect.Message
- func (x *EvaluationRequest) Reset()
- func (x *EvaluationRequest) String() string
- func (req *EvaluationRequest) Validate() error
- type EvaluationResponse
- func (*EvaluationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluationResponse) GetAttachment() string
- func (x *EvaluationResponse) GetEntityId() string
- func (x *EvaluationResponse) GetFlagKey() string
- func (x *EvaluationResponse) GetMatch() bool
- func (x *EvaluationResponse) GetReason() EvaluationReason
- func (x *EvaluationResponse) GetRequestContext() map[string]string
- func (x *EvaluationResponse) GetRequestDurationMillis() float64
- func (x *EvaluationResponse) GetRequestId() string
- func (x *EvaluationResponse) GetSegmentKey() string
- func (x *EvaluationResponse) GetTimestamp() *timestamppb.Timestamp
- func (x *EvaluationResponse) GetValue() string
- func (*EvaluationResponse) ProtoMessage()
- func (x *EvaluationResponse) ProtoReflect() protoreflect.Message
- func (x *EvaluationResponse) Reset()
- func (x *EvaluationResponse) String() string
- type Flag
- func (*Flag) Descriptor() ([]byte, []int)deprecated
- func (x *Flag) GetCreatedAt() *timestamppb.Timestamp
- func (x *Flag) GetDescription() string
- func (x *Flag) GetEnabled() bool
- func (x *Flag) GetKey() string
- func (x *Flag) GetName() string
- func (x *Flag) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Flag) GetVariants() []*Variant
- func (*Flag) ProtoMessage()
- func (x *Flag) ProtoReflect() protoreflect.Message
- func (x *Flag) Reset()
- func (x *Flag) String() string
- type FlagList
- func (*FlagList) Descriptor() ([]byte, []int)deprecated
- func (x *FlagList) GetFlags() []*Flag
- func (x *FlagList) GetNextPageToken() string
- func (x *FlagList) GetTotalCount() int32
- func (*FlagList) ProtoMessage()
- func (x *FlagList) ProtoReflect() protoreflect.Message
- func (x *FlagList) Reset()
- func (x *FlagList) String() string
- type FliptClient
- type FliptServer
- type GetFlagRequest
- func (*GetFlagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFlagRequest) GetKey() string
- func (*GetFlagRequest) ProtoMessage()
- func (x *GetFlagRequest) ProtoReflect() protoreflect.Message
- func (x *GetFlagRequest) Reset()
- func (x *GetFlagRequest) String() string
- func (req *GetFlagRequest) Validate() error
- type GetRuleRequest
- func (*GetRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRuleRequest) GetFlagKey() string
- func (x *GetRuleRequest) GetId() string
- func (*GetRuleRequest) ProtoMessage()
- func (x *GetRuleRequest) ProtoReflect() protoreflect.Message
- func (x *GetRuleRequest) Reset()
- func (x *GetRuleRequest) String() string
- func (req *GetRuleRequest) Validate() error
- type GetSegmentRequest
- func (*GetSegmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSegmentRequest) GetKey() string
- func (*GetSegmentRequest) ProtoMessage()
- func (x *GetSegmentRequest) ProtoReflect() protoreflect.Message
- func (x *GetSegmentRequest) Reset()
- func (x *GetSegmentRequest) String() string
- func (req *GetSegmentRequest) Validate() error
- type ListFlagRequest
- func (*ListFlagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFlagRequest) GetLimit() int32
- func (x *ListFlagRequest) GetOffset() int32deprecated
- func (x *ListFlagRequest) GetPageToken() string
- func (*ListFlagRequest) ProtoMessage()
- func (x *ListFlagRequest) ProtoReflect() protoreflect.Message
- func (x *ListFlagRequest) Reset()
- func (x *ListFlagRequest) String() string
- func (req *ListFlagRequest) Validate() error
- type ListRuleRequest
- func (*ListRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRuleRequest) GetFlagKey() string
- func (x *ListRuleRequest) GetLimit() int32
- func (x *ListRuleRequest) GetOffset() int32deprecated
- func (x *ListRuleRequest) GetPageToken() string
- func (*ListRuleRequest) ProtoMessage()
- func (x *ListRuleRequest) ProtoReflect() protoreflect.Message
- func (x *ListRuleRequest) Reset()
- func (x *ListRuleRequest) String() string
- func (req *ListRuleRequest) Validate() error
- type ListSegmentRequest
- func (*ListSegmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSegmentRequest) GetLimit() int32
- func (x *ListSegmentRequest) GetOffset() int32deprecated
- func (x *ListSegmentRequest) GetPageToken() string
- func (*ListSegmentRequest) ProtoMessage()
- func (x *ListSegmentRequest) ProtoReflect() protoreflect.Message
- func (x *ListSegmentRequest) Reset()
- func (x *ListSegmentRequest) String() string
- func (req *ListSegmentRequest) Validate() error
- type MatchType
- type OrderRulesRequest
- func (*OrderRulesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrderRulesRequest) GetFlagKey() string
- func (x *OrderRulesRequest) GetRuleIds() []string
- func (*OrderRulesRequest) ProtoMessage()
- func (x *OrderRulesRequest) ProtoReflect() protoreflect.Message
- func (x *OrderRulesRequest) Reset()
- func (x *OrderRulesRequest) String() string
- func (req *OrderRulesRequest) Validate() error
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)deprecated
- func (x *Rule) GetCreatedAt() *timestamppb.Timestamp
- func (x *Rule) GetDistributions() []*Distribution
- func (x *Rule) GetFlagKey() string
- func (x *Rule) GetId() string
- func (x *Rule) GetRank() int32
- func (x *Rule) GetSegmentKey() string
- func (x *Rule) GetUpdatedAt() *timestamppb.Timestamp
- func (*Rule) ProtoMessage()
- func (x *Rule) ProtoReflect() protoreflect.Message
- func (x *Rule) Reset()
- func (x *Rule) String() string
- type RuleList
- func (*RuleList) Descriptor() ([]byte, []int)deprecated
- func (x *RuleList) GetNextPageToken() string
- func (x *RuleList) GetRules() []*Rule
- func (x *RuleList) GetTotalCount() int32
- func (*RuleList) ProtoMessage()
- func (x *RuleList) ProtoReflect() protoreflect.Message
- func (x *RuleList) Reset()
- func (x *RuleList) String() string
- type Segment
- func (*Segment) Descriptor() ([]byte, []int)deprecated
- func (x *Segment) GetConstraints() []*Constraint
- func (x *Segment) GetCreatedAt() *timestamppb.Timestamp
- func (x *Segment) GetDescription() string
- func (x *Segment) GetKey() string
- func (x *Segment) GetMatchType() MatchType
- func (x *Segment) GetName() string
- func (x *Segment) GetUpdatedAt() *timestamppb.Timestamp
- func (*Segment) ProtoMessage()
- func (x *Segment) ProtoReflect() protoreflect.Message
- func (x *Segment) Reset()
- func (x *Segment) String() string
- type SegmentList
- func (*SegmentList) Descriptor() ([]byte, []int)deprecated
- func (x *SegmentList) GetNextPageToken() string
- func (x *SegmentList) GetSegments() []*Segment
- func (x *SegmentList) GetTotalCount() int32
- func (*SegmentList) ProtoMessage()
- func (x *SegmentList) ProtoReflect() protoreflect.Message
- func (x *SegmentList) Reset()
- func (x *SegmentList) String() string
- type UnimplementedFliptServer
- func (UnimplementedFliptServer) BatchEvaluate(context.Context, *BatchEvaluationRequest) (*BatchEvaluationResponse, error)
- func (UnimplementedFliptServer) CreateConstraint(context.Context, *CreateConstraintRequest) (*Constraint, error)
- func (UnimplementedFliptServer) CreateDistribution(context.Context, *CreateDistributionRequest) (*Distribution, error)
- func (UnimplementedFliptServer) CreateFlag(context.Context, *CreateFlagRequest) (*Flag, error)
- func (UnimplementedFliptServer) CreateRule(context.Context, *CreateRuleRequest) (*Rule, error)
- func (UnimplementedFliptServer) CreateSegment(context.Context, *CreateSegmentRequest) (*Segment, error)
- func (UnimplementedFliptServer) CreateVariant(context.Context, *CreateVariantRequest) (*Variant, error)
- func (UnimplementedFliptServer) DeleteConstraint(context.Context, *DeleteConstraintRequest) (*emptypb.Empty, error)
- func (UnimplementedFliptServer) DeleteDistribution(context.Context, *DeleteDistributionRequest) (*emptypb.Empty, error)
- func (UnimplementedFliptServer) DeleteFlag(context.Context, *DeleteFlagRequest) (*emptypb.Empty, error)
- func (UnimplementedFliptServer) DeleteRule(context.Context, *DeleteRuleRequest) (*emptypb.Empty, error)
- func (UnimplementedFliptServer) DeleteSegment(context.Context, *DeleteSegmentRequest) (*emptypb.Empty, error)
- func (UnimplementedFliptServer) DeleteVariant(context.Context, *DeleteVariantRequest) (*emptypb.Empty, error)
- func (UnimplementedFliptServer) Evaluate(context.Context, *EvaluationRequest) (*EvaluationResponse, error)
- func (UnimplementedFliptServer) GetFlag(context.Context, *GetFlagRequest) (*Flag, error)
- func (UnimplementedFliptServer) GetRule(context.Context, *GetRuleRequest) (*Rule, error)
- func (UnimplementedFliptServer) GetSegment(context.Context, *GetSegmentRequest) (*Segment, error)
- func (UnimplementedFliptServer) ListFlags(context.Context, *ListFlagRequest) (*FlagList, error)
- func (UnimplementedFliptServer) ListRules(context.Context, *ListRuleRequest) (*RuleList, error)
- func (UnimplementedFliptServer) ListSegments(context.Context, *ListSegmentRequest) (*SegmentList, error)
- func (UnimplementedFliptServer) OrderRules(context.Context, *OrderRulesRequest) (*emptypb.Empty, error)
- func (UnimplementedFliptServer) UpdateConstraint(context.Context, *UpdateConstraintRequest) (*Constraint, error)
- func (UnimplementedFliptServer) UpdateDistribution(context.Context, *UpdateDistributionRequest) (*Distribution, error)
- func (UnimplementedFliptServer) UpdateFlag(context.Context, *UpdateFlagRequest) (*Flag, error)
- func (UnimplementedFliptServer) UpdateRule(context.Context, *UpdateRuleRequest) (*Rule, error)
- func (UnimplementedFliptServer) UpdateSegment(context.Context, *UpdateSegmentRequest) (*Segment, error)
- func (UnimplementedFliptServer) UpdateVariant(context.Context, *UpdateVariantRequest) (*Variant, error)
- type UnsafeFliptServer
- type UpdateConstraintRequest
- func (*UpdateConstraintRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateConstraintRequest) GetId() string
- func (x *UpdateConstraintRequest) GetOperator() string
- func (x *UpdateConstraintRequest) GetProperty() string
- func (x *UpdateConstraintRequest) GetSegmentKey() string
- func (x *UpdateConstraintRequest) GetType() ComparisonType
- func (x *UpdateConstraintRequest) GetValue() string
- func (*UpdateConstraintRequest) ProtoMessage()
- func (x *UpdateConstraintRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateConstraintRequest) Reset()
- func (x *UpdateConstraintRequest) String() string
- func (req *UpdateConstraintRequest) Validate() error
- type UpdateDistributionRequest
- func (*UpdateDistributionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDistributionRequest) GetFlagKey() string
- func (x *UpdateDistributionRequest) GetId() string
- func (x *UpdateDistributionRequest) GetRollout() float32
- func (x *UpdateDistributionRequest) GetRuleId() string
- func (x *UpdateDistributionRequest) GetVariantId() string
- func (*UpdateDistributionRequest) ProtoMessage()
- func (x *UpdateDistributionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDistributionRequest) Reset()
- func (x *UpdateDistributionRequest) String() string
- func (req *UpdateDistributionRequest) Validate() error
- type UpdateFlagRequest
- func (*UpdateFlagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFlagRequest) GetDescription() string
- func (x *UpdateFlagRequest) GetEnabled() bool
- func (x *UpdateFlagRequest) GetKey() string
- func (x *UpdateFlagRequest) GetName() string
- func (*UpdateFlagRequest) ProtoMessage()
- func (x *UpdateFlagRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateFlagRequest) Reset()
- func (x *UpdateFlagRequest) String() string
- func (req *UpdateFlagRequest) Validate() error
- type UpdateRuleRequest
- func (*UpdateRuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRuleRequest) GetFlagKey() string
- func (x *UpdateRuleRequest) GetId() string
- func (x *UpdateRuleRequest) GetSegmentKey() string
- func (*UpdateRuleRequest) ProtoMessage()
- func (x *UpdateRuleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRuleRequest) Reset()
- func (x *UpdateRuleRequest) String() string
- func (req *UpdateRuleRequest) Validate() error
- type UpdateSegmentRequest
- func (*UpdateSegmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSegmentRequest) GetDescription() string
- func (x *UpdateSegmentRequest) GetKey() string
- func (x *UpdateSegmentRequest) GetMatchType() MatchType
- func (x *UpdateSegmentRequest) GetName() string
- func (*UpdateSegmentRequest) ProtoMessage()
- func (x *UpdateSegmentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSegmentRequest) Reset()
- func (x *UpdateSegmentRequest) String() string
- func (req *UpdateSegmentRequest) Validate() error
- type UpdateVariantRequest
- func (*UpdateVariantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateVariantRequest) GetAttachment() string
- func (x *UpdateVariantRequest) GetDescription() string
- func (x *UpdateVariantRequest) GetFlagKey() string
- func (x *UpdateVariantRequest) GetId() string
- func (x *UpdateVariantRequest) GetKey() string
- func (x *UpdateVariantRequest) GetName() string
- func (*UpdateVariantRequest) ProtoMessage()
- func (x *UpdateVariantRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateVariantRequest) Reset()
- func (x *UpdateVariantRequest) String() string
- func (req *UpdateVariantRequest) Validate() error
- type V1toV2MarshallerAdapter
- func (m *V1toV2MarshallerAdapter) ContentType(_ interface{}) string
- func (m *V1toV2MarshallerAdapter) Marshal(v interface{}) ([]byte, error)
- func (m *V1toV2MarshallerAdapter) NewDecoder(r io.Reader) grpc_gateway_v2.Decoder
- func (m *V1toV2MarshallerAdapter) NewEncoder(w io.Writer) grpc_gateway_v2.Encoder
- type Validator
- type Variant
- func (*Variant) Descriptor() ([]byte, []int)deprecated
- func (x *Variant) GetAttachment() string
- func (x *Variant) GetCreatedAt() *timestamppb.Timestamp
- func (x *Variant) GetDescription() string
- func (x *Variant) GetFlagKey() string
- func (x *Variant) GetId() string
- func (x *Variant) GetKey() string
- func (x *Variant) GetName() string
- func (x *Variant) GetUpdatedAt() *timestamppb.Timestamp
- func (*Variant) ProtoMessage()
- func (x *Variant) ProtoReflect() protoreflect.Message
- func (x *Variant) Reset()
- func (x *Variant) String() string
Constants ¶
const ( OpEQ = "eq" OpNEQ = "neq" OpLT = "lt" OpLTE = "lte" OpGT = "gt" OpGTE = "gte" OpEmpty = "empty" OpNotEmpty = "notempty" OpTrue = "true" OpFalse = "false" OpPresent = "present" OpNotPresent = "notpresent" OpPrefix = "prefix" OpSuffix = "suffix" )
Variables ¶
var ( EvaluationReason_name = map[int32]string{ 0: "UNKNOWN_EVALUATION_REASON", 1: "FLAG_DISABLED_EVALUATION_REASON", 2: "FLAG_NOT_FOUND_EVALUATION_REASON", 3: "MATCH_EVALUATION_REASON", 4: "ERROR_EVALUATION_REASON", } EvaluationReason_value = map[string]int32{ "UNKNOWN_EVALUATION_REASON": 0, "FLAG_DISABLED_EVALUATION_REASON": 1, "FLAG_NOT_FOUND_EVALUATION_REASON": 2, "MATCH_EVALUATION_REASON": 3, "ERROR_EVALUATION_REASON": 4, } )
Enum value maps for EvaluationReason.
var ( MatchType_name = map[int32]string{ 0: "ALL_MATCH_TYPE", 1: "ANY_MATCH_TYPE", } MatchType_value = map[string]int32{ "ALL_MATCH_TYPE": 0, "ANY_MATCH_TYPE": 1, } )
Enum value maps for MatchType.
var ( ComparisonType_name = map[int32]string{ 0: "UNKNOWN_COMPARISON_TYPE", 1: "STRING_COMPARISON_TYPE", 2: "NUMBER_COMPARISON_TYPE", 3: "BOOLEAN_COMPARISON_TYPE", } ComparisonType_value = map[string]int32{ "UNKNOWN_COMPARISON_TYPE": 0, "STRING_COMPARISON_TYPE": 1, "NUMBER_COMPARISON_TYPE": 2, "BOOLEAN_COMPARISON_TYPE": 3, } )
Enum value maps for ComparisonType.
var ( ValidOperators = map[string]struct{}{ OpEQ: {}, OpNEQ: {}, OpLT: {}, OpLTE: {}, OpGT: {}, OpGTE: {}, OpEmpty: {}, OpNotEmpty: {}, OpTrue: {}, OpFalse: {}, OpPresent: {}, OpNotPresent: {}, OpPrefix: {}, OpSuffix: {}, } NoValueOperators = map[string]struct{}{ OpTrue: {}, OpFalse: {}, OpEmpty: {}, OpNotEmpty: {}, OpPresent: {}, OpNotPresent: {}, } StringOperators = map[string]struct{}{ OpEQ: {}, OpNEQ: {}, OpEmpty: {}, OpNotEmpty: {}, OpPrefix: {}, OpSuffix: {}, } NumberOperators = map[string]struct{}{ OpEQ: {}, OpNEQ: {}, OpLT: {}, OpLTE: {}, OpGT: {}, OpGTE: {}, OpPresent: {}, OpNotPresent: {}, } BooleanOperators = map[string]struct{}{ OpTrue: {}, OpFalse: {}, OpPresent: {}, OpNotPresent: {}, } )
var File_flipt_proto protoreflect.FileDescriptor
var Flipt_ServiceDesc = grpc.ServiceDesc{ ServiceName: "flipt.Flipt", HandlerType: (*FliptServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Evaluate", Handler: _Flipt_Evaluate_Handler, }, { MethodName: "BatchEvaluate", Handler: _Flipt_BatchEvaluate_Handler, }, { MethodName: "GetFlag", Handler: _Flipt_GetFlag_Handler, }, { MethodName: "ListFlags", Handler: _Flipt_ListFlags_Handler, }, { MethodName: "CreateFlag", Handler: _Flipt_CreateFlag_Handler, }, { MethodName: "UpdateFlag", Handler: _Flipt_UpdateFlag_Handler, }, { MethodName: "DeleteFlag", Handler: _Flipt_DeleteFlag_Handler, }, { MethodName: "CreateVariant", Handler: _Flipt_CreateVariant_Handler, }, { MethodName: "UpdateVariant", Handler: _Flipt_UpdateVariant_Handler, }, { MethodName: "DeleteVariant", Handler: _Flipt_DeleteVariant_Handler, }, { MethodName: "GetRule", Handler: _Flipt_GetRule_Handler, }, { MethodName: "ListRules", Handler: _Flipt_ListRules_Handler, }, { MethodName: "CreateRule", Handler: _Flipt_CreateRule_Handler, }, { MethodName: "UpdateRule", Handler: _Flipt_UpdateRule_Handler, }, { MethodName: "OrderRules", Handler: _Flipt_OrderRules_Handler, }, { MethodName: "DeleteRule", Handler: _Flipt_DeleteRule_Handler, }, { MethodName: "CreateDistribution", Handler: _Flipt_CreateDistribution_Handler, }, { MethodName: "UpdateDistribution", Handler: _Flipt_UpdateDistribution_Handler, }, { MethodName: "DeleteDistribution", Handler: _Flipt_DeleteDistribution_Handler, }, { MethodName: "GetSegment", Handler: _Flipt_GetSegment_Handler, }, { MethodName: "ListSegments", Handler: _Flipt_ListSegments_Handler, }, { MethodName: "CreateSegment", Handler: _Flipt_CreateSegment_Handler, }, { MethodName: "UpdateSegment", Handler: _Flipt_UpdateSegment_Handler, }, { MethodName: "DeleteSegment", Handler: _Flipt_DeleteSegment_Handler, }, { MethodName: "CreateConstraint", Handler: _Flipt_CreateConstraint_Handler, }, { MethodName: "UpdateConstraint", Handler: _Flipt_UpdateConstraint_Handler, }, { MethodName: "DeleteConstraint", Handler: _Flipt_DeleteConstraint_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "flipt.proto", }
Flipt_ServiceDesc is the grpc.ServiceDesc for Flipt service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFliptHandler ¶
RegisterFliptHandler registers the http handlers for service Flipt to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterFliptHandlerClient ¶
func RegisterFliptHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FliptClient) error
RegisterFliptHandlerClient registers the http handlers for service Flipt to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FliptClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FliptClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FliptClient" to call the correct interceptors.
func RegisterFliptHandlerFromEndpoint ¶
func RegisterFliptHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterFliptHandlerFromEndpoint is same as RegisterFliptHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterFliptHandlerServer ¶
func RegisterFliptHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FliptServer) error
RegisterFliptHandlerServer registers the http handlers for service Flipt to "mux". UnaryRPC :call FliptServer 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 RegisterFliptHandlerFromEndpoint instead.
func RegisterFliptServer ¶
func RegisterFliptServer(s grpc.ServiceRegistrar, srv FliptServer)
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,2,rep,name=requests,proto3" json:"requests,omitempty"` ExcludeNotFound bool `protobuf:"varint,3,opt,name=exclude_not_found,json=excludeNotFound,proto3" json:"exclude_not_found,omitempty"` // contains filtered or unexported fields }
func (*BatchEvaluationRequest) Descriptor
deprecated
func (*BatchEvaluationRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchEvaluationRequest.ProtoReflect.Descriptor instead.
func (*BatchEvaluationRequest) GetExcludeNotFound ¶
func (x *BatchEvaluationRequest) GetExcludeNotFound() bool
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 ComparisonType ¶
type ComparisonType int32
const ( ComparisonType_UNKNOWN_COMPARISON_TYPE ComparisonType = 0 ComparisonType_STRING_COMPARISON_TYPE ComparisonType = 1 ComparisonType_NUMBER_COMPARISON_TYPE ComparisonType = 2 ComparisonType_BOOLEAN_COMPARISON_TYPE ComparisonType = 3 )
func (ComparisonType) Descriptor ¶
func (ComparisonType) Descriptor() protoreflect.EnumDescriptor
func (ComparisonType) Enum ¶
func (x ComparisonType) Enum() *ComparisonType
func (ComparisonType) EnumDescriptor
deprecated
func (ComparisonType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComparisonType.Descriptor instead.
func (ComparisonType) Number ¶
func (x ComparisonType) Number() protoreflect.EnumNumber
func (ComparisonType) String ¶
func (x ComparisonType) String() string
func (ComparisonType) Type ¶
func (ComparisonType) Type() protoreflect.EnumType
type Constraint ¶
type Constraint struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SegmentKey string `protobuf:"bytes,2,opt,name=segment_key,json=segmentKey,proto3" json:"segment_key,omitempty"` Type ComparisonType `protobuf:"varint,3,opt,name=type,proto3,enum=flipt.ComparisonType" json:"type,omitempty"` Property string `protobuf:"bytes,4,opt,name=property,proto3" json:"property,omitempty"` Operator string `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator,omitempty"` Value string `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Constraint) Descriptor
deprecated
func (*Constraint) Descriptor() ([]byte, []int)
Deprecated: Use Constraint.ProtoReflect.Descriptor instead.
func (*Constraint) GetCreatedAt ¶
func (x *Constraint) GetCreatedAt() *timestamppb.Timestamp
func (*Constraint) GetId ¶
func (x *Constraint) GetId() string
func (*Constraint) GetOperator ¶
func (x *Constraint) GetOperator() string
func (*Constraint) GetProperty ¶
func (x *Constraint) GetProperty() string
func (*Constraint) GetSegmentKey ¶
func (x *Constraint) GetSegmentKey() string
func (*Constraint) GetType ¶
func (x *Constraint) GetType() ComparisonType
func (*Constraint) GetUpdatedAt ¶
func (x *Constraint) GetUpdatedAt() *timestamppb.Timestamp
func (*Constraint) GetValue ¶
func (x *Constraint) GetValue() string
func (*Constraint) ProtoMessage ¶
func (*Constraint) ProtoMessage()
func (*Constraint) ProtoReflect ¶
func (x *Constraint) ProtoReflect() protoreflect.Message
func (*Constraint) Reset ¶
func (x *Constraint) Reset()
func (*Constraint) String ¶
func (x *Constraint) String() string
type CreateConstraintRequest ¶
type CreateConstraintRequest struct { SegmentKey string `protobuf:"bytes,1,opt,name=segment_key,json=segmentKey,proto3" json:"segment_key,omitempty"` Type ComparisonType `protobuf:"varint,2,opt,name=type,proto3,enum=flipt.ComparisonType" 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 (*CreateConstraintRequest) Descriptor
deprecated
func (*CreateConstraintRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateConstraintRequest.ProtoReflect.Descriptor instead.
func (*CreateConstraintRequest) GetOperator ¶
func (x *CreateConstraintRequest) GetOperator() string
func (*CreateConstraintRequest) GetProperty ¶
func (x *CreateConstraintRequest) GetProperty() string
func (*CreateConstraintRequest) GetSegmentKey ¶
func (x *CreateConstraintRequest) GetSegmentKey() string
func (*CreateConstraintRequest) GetType ¶
func (x *CreateConstraintRequest) GetType() ComparisonType
func (*CreateConstraintRequest) GetValue ¶
func (x *CreateConstraintRequest) GetValue() string
func (*CreateConstraintRequest) ProtoMessage ¶
func (*CreateConstraintRequest) ProtoMessage()
func (*CreateConstraintRequest) ProtoReflect ¶
func (x *CreateConstraintRequest) ProtoReflect() protoreflect.Message
func (*CreateConstraintRequest) Reset ¶
func (x *CreateConstraintRequest) Reset()
func (*CreateConstraintRequest) String ¶
func (x *CreateConstraintRequest) String() string
func (*CreateConstraintRequest) Validate ¶
func (req *CreateConstraintRequest) Validate() error
type CreateDistributionRequest ¶
type CreateDistributionRequest struct { FlagKey string `protobuf:"bytes,1,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,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"` Rollout float32 `protobuf:"fixed32,4,opt,name=rollout,proto3" json:"rollout,omitempty"` // contains filtered or unexported fields }
func (*CreateDistributionRequest) Descriptor
deprecated
func (*CreateDistributionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDistributionRequest.ProtoReflect.Descriptor instead.
func (*CreateDistributionRequest) GetFlagKey ¶
func (x *CreateDistributionRequest) GetFlagKey() string
func (*CreateDistributionRequest) GetRollout ¶
func (x *CreateDistributionRequest) GetRollout() float32
func (*CreateDistributionRequest) GetRuleId ¶
func (x *CreateDistributionRequest) GetRuleId() string
func (*CreateDistributionRequest) GetVariantId ¶
func (x *CreateDistributionRequest) GetVariantId() string
func (*CreateDistributionRequest) ProtoMessage ¶
func (*CreateDistributionRequest) ProtoMessage()
func (*CreateDistributionRequest) ProtoReflect ¶
func (x *CreateDistributionRequest) ProtoReflect() protoreflect.Message
func (*CreateDistributionRequest) Reset ¶
func (x *CreateDistributionRequest) Reset()
func (*CreateDistributionRequest) String ¶
func (x *CreateDistributionRequest) String() string
func (*CreateDistributionRequest) Validate ¶
func (req *CreateDistributionRequest) Validate() error
type CreateFlagRequest ¶
type CreateFlagRequest 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"` // contains filtered or unexported fields }
func (*CreateFlagRequest) Descriptor
deprecated
func (*CreateFlagRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateFlagRequest.ProtoReflect.Descriptor instead.
func (*CreateFlagRequest) GetDescription ¶
func (x *CreateFlagRequest) GetDescription() string
func (*CreateFlagRequest) GetEnabled ¶
func (x *CreateFlagRequest) GetEnabled() bool
func (*CreateFlagRequest) GetKey ¶
func (x *CreateFlagRequest) GetKey() string
func (*CreateFlagRequest) GetName ¶
func (x *CreateFlagRequest) GetName() string
func (*CreateFlagRequest) ProtoMessage ¶
func (*CreateFlagRequest) ProtoMessage()
func (*CreateFlagRequest) ProtoReflect ¶
func (x *CreateFlagRequest) ProtoReflect() protoreflect.Message
func (*CreateFlagRequest) Reset ¶
func (x *CreateFlagRequest) Reset()
func (*CreateFlagRequest) String ¶
func (x *CreateFlagRequest) String() string
func (*CreateFlagRequest) Validate ¶
func (req *CreateFlagRequest) Validate() error
type CreateRuleRequest ¶
type CreateRuleRequest struct { FlagKey string `protobuf:"bytes,1,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` SegmentKey string `protobuf:"bytes,2,opt,name=segment_key,json=segmentKey,proto3" json:"segment_key,omitempty"` Rank int32 `protobuf:"varint,3,opt,name=rank,proto3" json:"rank,omitempty"` // contains filtered or unexported fields }
func (*CreateRuleRequest) Descriptor
deprecated
func (*CreateRuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRuleRequest.ProtoReflect.Descriptor instead.
func (*CreateRuleRequest) GetFlagKey ¶
func (x *CreateRuleRequest) GetFlagKey() string
func (*CreateRuleRequest) GetRank ¶
func (x *CreateRuleRequest) GetRank() int32
func (*CreateRuleRequest) GetSegmentKey ¶
func (x *CreateRuleRequest) GetSegmentKey() string
func (*CreateRuleRequest) ProtoMessage ¶
func (*CreateRuleRequest) ProtoMessage()
func (*CreateRuleRequest) ProtoReflect ¶
func (x *CreateRuleRequest) ProtoReflect() protoreflect.Message
func (*CreateRuleRequest) Reset ¶
func (x *CreateRuleRequest) Reset()
func (*CreateRuleRequest) String ¶
func (x *CreateRuleRequest) String() string
func (*CreateRuleRequest) Validate ¶
func (req *CreateRuleRequest) Validate() error
type CreateSegmentRequest ¶
type CreateSegmentRequest 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 MatchType `protobuf:"varint,4,opt,name=match_type,json=matchType,proto3,enum=flipt.MatchType" json:"match_type,omitempty"` // contains filtered or unexported fields }
func (*CreateSegmentRequest) Descriptor
deprecated
func (*CreateSegmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSegmentRequest.ProtoReflect.Descriptor instead.
func (*CreateSegmentRequest) GetDescription ¶
func (x *CreateSegmentRequest) GetDescription() string
func (*CreateSegmentRequest) GetKey ¶
func (x *CreateSegmentRequest) GetKey() string
func (*CreateSegmentRequest) GetMatchType ¶
func (x *CreateSegmentRequest) GetMatchType() MatchType
func (*CreateSegmentRequest) GetName ¶
func (x *CreateSegmentRequest) GetName() string
func (*CreateSegmentRequest) ProtoMessage ¶
func (*CreateSegmentRequest) ProtoMessage()
func (*CreateSegmentRequest) ProtoReflect ¶
func (x *CreateSegmentRequest) ProtoReflect() protoreflect.Message
func (*CreateSegmentRequest) Reset ¶
func (x *CreateSegmentRequest) Reset()
func (*CreateSegmentRequest) String ¶
func (x *CreateSegmentRequest) String() string
func (*CreateSegmentRequest) Validate ¶
func (req *CreateSegmentRequest) Validate() error
type CreateVariantRequest ¶
type CreateVariantRequest struct { FlagKey string `protobuf:"bytes,1,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Attachment string `protobuf:"bytes,5,opt,name=attachment,proto3" json:"attachment,omitempty"` // contains filtered or unexported fields }
func (*CreateVariantRequest) Descriptor
deprecated
func (*CreateVariantRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateVariantRequest.ProtoReflect.Descriptor instead.
func (*CreateVariantRequest) GetAttachment ¶
func (x *CreateVariantRequest) GetAttachment() string
func (*CreateVariantRequest) GetDescription ¶
func (x *CreateVariantRequest) GetDescription() string
func (*CreateVariantRequest) GetFlagKey ¶
func (x *CreateVariantRequest) GetFlagKey() string
func (*CreateVariantRequest) GetKey ¶
func (x *CreateVariantRequest) GetKey() string
func (*CreateVariantRequest) GetName ¶
func (x *CreateVariantRequest) GetName() string
func (*CreateVariantRequest) ProtoMessage ¶
func (*CreateVariantRequest) ProtoMessage()
func (*CreateVariantRequest) ProtoReflect ¶
func (x *CreateVariantRequest) ProtoReflect() protoreflect.Message
func (*CreateVariantRequest) Reset ¶
func (x *CreateVariantRequest) Reset()
func (*CreateVariantRequest) String ¶
func (x *CreateVariantRequest) String() string
func (*CreateVariantRequest) Validate ¶
func (req *CreateVariantRequest) Validate() error
type DeleteConstraintRequest ¶
type DeleteConstraintRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SegmentKey string `protobuf:"bytes,2,opt,name=segment_key,json=segmentKey,proto3" json:"segment_key,omitempty"` // contains filtered or unexported fields }
func (*DeleteConstraintRequest) Descriptor
deprecated
func (*DeleteConstraintRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteConstraintRequest.ProtoReflect.Descriptor instead.
func (*DeleteConstraintRequest) GetId ¶
func (x *DeleteConstraintRequest) GetId() string
func (*DeleteConstraintRequest) GetSegmentKey ¶
func (x *DeleteConstraintRequest) GetSegmentKey() string
func (*DeleteConstraintRequest) ProtoMessage ¶
func (*DeleteConstraintRequest) ProtoMessage()
func (*DeleteConstraintRequest) ProtoReflect ¶
func (x *DeleteConstraintRequest) ProtoReflect() protoreflect.Message
func (*DeleteConstraintRequest) Reset ¶
func (x *DeleteConstraintRequest) Reset()
func (*DeleteConstraintRequest) String ¶
func (x *DeleteConstraintRequest) String() string
func (*DeleteConstraintRequest) Validate ¶
func (req *DeleteConstraintRequest) Validate() error
type DeleteDistributionRequest ¶
type DeleteDistributionRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FlagKey string `protobuf:"bytes,2,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` RuleId string `protobuf:"bytes,3,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` VariantId string `protobuf:"bytes,4,opt,name=variant_id,json=variantId,proto3" json:"variant_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteDistributionRequest) Descriptor
deprecated
func (*DeleteDistributionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDistributionRequest.ProtoReflect.Descriptor instead.
func (*DeleteDistributionRequest) GetFlagKey ¶
func (x *DeleteDistributionRequest) GetFlagKey() string
func (*DeleteDistributionRequest) GetId ¶
func (x *DeleteDistributionRequest) GetId() string
func (*DeleteDistributionRequest) GetRuleId ¶
func (x *DeleteDistributionRequest) GetRuleId() string
func (*DeleteDistributionRequest) GetVariantId ¶
func (x *DeleteDistributionRequest) GetVariantId() string
func (*DeleteDistributionRequest) ProtoMessage ¶
func (*DeleteDistributionRequest) ProtoMessage()
func (*DeleteDistributionRequest) ProtoReflect ¶
func (x *DeleteDistributionRequest) ProtoReflect() protoreflect.Message
func (*DeleteDistributionRequest) Reset ¶
func (x *DeleteDistributionRequest) Reset()
func (*DeleteDistributionRequest) String ¶
func (x *DeleteDistributionRequest) String() string
func (*DeleteDistributionRequest) Validate ¶
func (req *DeleteDistributionRequest) Validate() error
type DeleteFlagRequest ¶
type DeleteFlagRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DeleteFlagRequest) Descriptor
deprecated
func (*DeleteFlagRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFlagRequest.ProtoReflect.Descriptor instead.
func (*DeleteFlagRequest) GetKey ¶
func (x *DeleteFlagRequest) GetKey() string
func (*DeleteFlagRequest) ProtoMessage ¶
func (*DeleteFlagRequest) ProtoMessage()
func (*DeleteFlagRequest) ProtoReflect ¶
func (x *DeleteFlagRequest) ProtoReflect() protoreflect.Message
func (*DeleteFlagRequest) Reset ¶
func (x *DeleteFlagRequest) Reset()
func (*DeleteFlagRequest) String ¶
func (x *DeleteFlagRequest) String() string
func (*DeleteFlagRequest) Validate ¶
func (req *DeleteFlagRequest) Validate() error
type DeleteRuleRequest ¶
type DeleteRuleRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FlagKey string `protobuf:"bytes,2,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` // contains filtered or unexported fields }
func (*DeleteRuleRequest) Descriptor
deprecated
func (*DeleteRuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRuleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRuleRequest) GetFlagKey ¶
func (x *DeleteRuleRequest) GetFlagKey() string
func (*DeleteRuleRequest) GetId ¶
func (x *DeleteRuleRequest) GetId() string
func (*DeleteRuleRequest) ProtoMessage ¶
func (*DeleteRuleRequest) ProtoMessage()
func (*DeleteRuleRequest) ProtoReflect ¶
func (x *DeleteRuleRequest) ProtoReflect() protoreflect.Message
func (*DeleteRuleRequest) Reset ¶
func (x *DeleteRuleRequest) Reset()
func (*DeleteRuleRequest) String ¶
func (x *DeleteRuleRequest) String() string
func (*DeleteRuleRequest) Validate ¶
func (req *DeleteRuleRequest) Validate() error
type DeleteSegmentRequest ¶
type DeleteSegmentRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DeleteSegmentRequest) Descriptor
deprecated
func (*DeleteSegmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSegmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteSegmentRequest) GetKey ¶
func (x *DeleteSegmentRequest) GetKey() string
func (*DeleteSegmentRequest) ProtoMessage ¶
func (*DeleteSegmentRequest) ProtoMessage()
func (*DeleteSegmentRequest) ProtoReflect ¶
func (x *DeleteSegmentRequest) ProtoReflect() protoreflect.Message
func (*DeleteSegmentRequest) Reset ¶
func (x *DeleteSegmentRequest) Reset()
func (*DeleteSegmentRequest) String ¶
func (x *DeleteSegmentRequest) String() string
func (*DeleteSegmentRequest) Validate ¶
func (req *DeleteSegmentRequest) Validate() error
type DeleteVariantRequest ¶
type DeleteVariantRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FlagKey string `protobuf:"bytes,2,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` // contains filtered or unexported fields }
func (*DeleteVariantRequest) Descriptor
deprecated
func (*DeleteVariantRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteVariantRequest.ProtoReflect.Descriptor instead.
func (*DeleteVariantRequest) GetFlagKey ¶
func (x *DeleteVariantRequest) GetFlagKey() string
func (*DeleteVariantRequest) GetId ¶
func (x *DeleteVariantRequest) GetId() string
func (*DeleteVariantRequest) ProtoMessage ¶
func (*DeleteVariantRequest) ProtoMessage()
func (*DeleteVariantRequest) ProtoReflect ¶
func (x *DeleteVariantRequest) ProtoReflect() protoreflect.Message
func (*DeleteVariantRequest) Reset ¶
func (x *DeleteVariantRequest) Reset()
func (*DeleteVariantRequest) String ¶
func (x *DeleteVariantRequest) String() string
func (*DeleteVariantRequest) Validate ¶
func (req *DeleteVariantRequest) Validate() error
type Distribution ¶
type Distribution 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"` Rollout float32 `protobuf:"fixed32,4,opt,name=rollout,proto3" json:"rollout,omitempty"` 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"` // contains filtered or unexported fields }
func (*Distribution) Descriptor
deprecated
func (*Distribution) Descriptor() ([]byte, []int)
Deprecated: Use Distribution.ProtoReflect.Descriptor instead.
func (*Distribution) GetCreatedAt ¶
func (x *Distribution) GetCreatedAt() *timestamppb.Timestamp
func (*Distribution) GetId ¶
func (x *Distribution) GetId() string
func (*Distribution) GetRollout ¶
func (x *Distribution) GetRollout() float32
func (*Distribution) GetRuleId ¶
func (x *Distribution) GetRuleId() string
func (*Distribution) GetUpdatedAt ¶
func (x *Distribution) GetUpdatedAt() *timestamppb.Timestamp
func (*Distribution) GetVariantId ¶
func (x *Distribution) GetVariantId() string
func (*Distribution) ProtoMessage ¶
func (*Distribution) ProtoMessage()
func (*Distribution) ProtoReflect ¶
func (x *Distribution) ProtoReflect() protoreflect.Message
func (*Distribution) Reset ¶
func (x *Distribution) Reset()
func (*Distribution) String ¶
func (x *Distribution) String() string
type EvaluationReason ¶ added in v1.14.0
type EvaluationReason int32
const ( EvaluationReason_UNKNOWN_EVALUATION_REASON EvaluationReason = 0 EvaluationReason_FLAG_DISABLED_EVALUATION_REASON EvaluationReason = 1 EvaluationReason_FLAG_NOT_FOUND_EVALUATION_REASON EvaluationReason = 2 EvaluationReason_MATCH_EVALUATION_REASON EvaluationReason = 3 EvaluationReason_ERROR_EVALUATION_REASON EvaluationReason = 4 )
func (EvaluationReason) Descriptor ¶ added in v1.14.0
func (EvaluationReason) Descriptor() protoreflect.EnumDescriptor
func (EvaluationReason) Enum ¶ added in v1.14.0
func (x EvaluationReason) Enum() *EvaluationReason
func (EvaluationReason) EnumDescriptor
deprecated
added in
v1.14.0
func (EvaluationReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use EvaluationReason.Descriptor instead.
func (EvaluationReason) Number ¶ added in v1.14.0
func (x EvaluationReason) Number() protoreflect.EnumNumber
func (EvaluationReason) String ¶ added in v1.14.0
func (x EvaluationReason) String() string
func (EvaluationReason) Type ¶ added in v1.14.0
func (EvaluationReason) Type() protoreflect.EnumType
type EvaluationRequest ¶
type EvaluationRequest struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` FlagKey string `protobuf:"bytes,2,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` EntityId string `protobuf:"bytes,3,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) 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
func (*EvaluationRequest) Validate ¶
func (req *EvaluationRequest) Validate() error
type EvaluationResponse ¶
type EvaluationResponse struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` EntityId string `protobuf:"bytes,2,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` RequestContext map[string]string `` /* 191-byte string literal not displayed */ Match bool `protobuf:"varint,4,opt,name=match,proto3" json:"match,omitempty"` FlagKey string `protobuf:"bytes,5,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` SegmentKey string `protobuf:"bytes,6,opt,name=segment_key,json=segmentKey,proto3" json:"segment_key,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Value string `protobuf:"bytes,8,opt,name=value,proto3" json:"value,omitempty"` RequestDurationMillis float64 `` /* 128-byte string literal not displayed */ Attachment string `protobuf:"bytes,10,opt,name=attachment,proto3" json:"attachment,omitempty"` Reason EvaluationReason `protobuf:"varint,11,opt,name=reason,proto3,enum=flipt.EvaluationReason" json:"reason,omitempty"` // contains filtered or unexported fields }
func (*EvaluationResponse) Descriptor
deprecated
func (*EvaluationResponse) Descriptor() ([]byte, []int)
Deprecated: Use EvaluationResponse.ProtoReflect.Descriptor instead.
func (*EvaluationResponse) GetAttachment ¶
func (x *EvaluationResponse) GetAttachment() string
func (*EvaluationResponse) GetEntityId ¶
func (x *EvaluationResponse) GetEntityId() string
func (*EvaluationResponse) GetFlagKey ¶
func (x *EvaluationResponse) GetFlagKey() string
func (*EvaluationResponse) GetMatch ¶
func (x *EvaluationResponse) GetMatch() bool
func (*EvaluationResponse) GetReason ¶ added in v1.14.0
func (x *EvaluationResponse) GetReason() EvaluationReason
func (*EvaluationResponse) GetRequestContext ¶
func (x *EvaluationResponse) GetRequestContext() map[string]string
func (*EvaluationResponse) GetRequestDurationMillis ¶
func (x *EvaluationResponse) GetRequestDurationMillis() float64
func (*EvaluationResponse) GetRequestId ¶
func (x *EvaluationResponse) GetRequestId() string
func (*EvaluationResponse) GetSegmentKey ¶
func (x *EvaluationResponse) GetSegmentKey() string
func (*EvaluationResponse) GetTimestamp ¶
func (x *EvaluationResponse) GetTimestamp() *timestamppb.Timestamp
func (*EvaluationResponse) GetValue ¶
func (x *EvaluationResponse) GetValue() string
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 Flag ¶
type Flag 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"` 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"` Variants []*Variant `protobuf:"bytes,7,rep,name=variants,proto3" json:"variants,omitempty"` // contains filtered or unexported fields }
func (*Flag) Descriptor
deprecated
func (*Flag) GetCreatedAt ¶
func (x *Flag) GetCreatedAt() *timestamppb.Timestamp
func (*Flag) GetDescription ¶
func (*Flag) GetEnabled ¶
func (*Flag) GetUpdatedAt ¶
func (x *Flag) GetUpdatedAt() *timestamppb.Timestamp
func (*Flag) GetVariants ¶
func (*Flag) ProtoMessage ¶
func (*Flag) ProtoMessage()
func (*Flag) ProtoReflect ¶
func (x *Flag) ProtoReflect() protoreflect.Message
type FlagList ¶
type FlagList struct { Flags []*Flag `protobuf:"bytes,1,rep,name=flags,proto3" json:"flags,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` TotalCount int32 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // contains filtered or unexported fields }
func (*FlagList) Descriptor
deprecated
func (*FlagList) GetNextPageToken ¶ added in v1.13.0
func (*FlagList) GetTotalCount ¶ added in v1.13.0
func (*FlagList) ProtoMessage ¶
func (*FlagList) ProtoMessage()
func (*FlagList) ProtoReflect ¶
func (x *FlagList) ProtoReflect() protoreflect.Message
type FliptClient ¶
type FliptClient interface { Evaluate(ctx context.Context, in *EvaluationRequest, opts ...grpc.CallOption) (*EvaluationResponse, error) BatchEvaluate(ctx context.Context, in *BatchEvaluationRequest, opts ...grpc.CallOption) (*BatchEvaluationResponse, error) GetFlag(ctx context.Context, in *GetFlagRequest, opts ...grpc.CallOption) (*Flag, error) ListFlags(ctx context.Context, in *ListFlagRequest, opts ...grpc.CallOption) (*FlagList, error) CreateFlag(ctx context.Context, in *CreateFlagRequest, opts ...grpc.CallOption) (*Flag, error) UpdateFlag(ctx context.Context, in *UpdateFlagRequest, opts ...grpc.CallOption) (*Flag, error) DeleteFlag(ctx context.Context, in *DeleteFlagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CreateVariant(ctx context.Context, in *CreateVariantRequest, opts ...grpc.CallOption) (*Variant, error) UpdateVariant(ctx context.Context, in *UpdateVariantRequest, opts ...grpc.CallOption) (*Variant, error) DeleteVariant(ctx context.Context, in *DeleteVariantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetRule(ctx context.Context, in *GetRuleRequest, opts ...grpc.CallOption) (*Rule, error) ListRules(ctx context.Context, in *ListRuleRequest, opts ...grpc.CallOption) (*RuleList, error) CreateRule(ctx context.Context, in *CreateRuleRequest, opts ...grpc.CallOption) (*Rule, error) UpdateRule(ctx context.Context, in *UpdateRuleRequest, opts ...grpc.CallOption) (*Rule, error) OrderRules(ctx context.Context, in *OrderRulesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteRule(ctx context.Context, in *DeleteRuleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CreateDistribution(ctx context.Context, in *CreateDistributionRequest, opts ...grpc.CallOption) (*Distribution, error) UpdateDistribution(ctx context.Context, in *UpdateDistributionRequest, opts ...grpc.CallOption) (*Distribution, error) DeleteDistribution(ctx context.Context, in *DeleteDistributionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetSegment(ctx context.Context, in *GetSegmentRequest, opts ...grpc.CallOption) (*Segment, error) ListSegments(ctx context.Context, in *ListSegmentRequest, opts ...grpc.CallOption) (*SegmentList, error) CreateSegment(ctx context.Context, in *CreateSegmentRequest, opts ...grpc.CallOption) (*Segment, error) UpdateSegment(ctx context.Context, in *UpdateSegmentRequest, opts ...grpc.CallOption) (*Segment, error) DeleteSegment(ctx context.Context, in *DeleteSegmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CreateConstraint(ctx context.Context, in *CreateConstraintRequest, opts ...grpc.CallOption) (*Constraint, error) UpdateConstraint(ctx context.Context, in *UpdateConstraintRequest, opts ...grpc.CallOption) (*Constraint, error) DeleteConstraint(ctx context.Context, in *DeleteConstraintRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
FliptClient is the client API for Flipt 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 NewFliptClient ¶
func NewFliptClient(cc grpc.ClientConnInterface) FliptClient
type FliptServer ¶
type FliptServer interface { Evaluate(context.Context, *EvaluationRequest) (*EvaluationResponse, error) BatchEvaluate(context.Context, *BatchEvaluationRequest) (*BatchEvaluationResponse, error) GetFlag(context.Context, *GetFlagRequest) (*Flag, error) ListFlags(context.Context, *ListFlagRequest) (*FlagList, error) CreateFlag(context.Context, *CreateFlagRequest) (*Flag, error) UpdateFlag(context.Context, *UpdateFlagRequest) (*Flag, error) DeleteFlag(context.Context, *DeleteFlagRequest) (*emptypb.Empty, error) CreateVariant(context.Context, *CreateVariantRequest) (*Variant, error) UpdateVariant(context.Context, *UpdateVariantRequest) (*Variant, error) DeleteVariant(context.Context, *DeleteVariantRequest) (*emptypb.Empty, error) GetRule(context.Context, *GetRuleRequest) (*Rule, error) ListRules(context.Context, *ListRuleRequest) (*RuleList, error) CreateRule(context.Context, *CreateRuleRequest) (*Rule, error) UpdateRule(context.Context, *UpdateRuleRequest) (*Rule, error) OrderRules(context.Context, *OrderRulesRequest) (*emptypb.Empty, error) DeleteRule(context.Context, *DeleteRuleRequest) (*emptypb.Empty, error) CreateDistribution(context.Context, *CreateDistributionRequest) (*Distribution, error) UpdateDistribution(context.Context, *UpdateDistributionRequest) (*Distribution, error) DeleteDistribution(context.Context, *DeleteDistributionRequest) (*emptypb.Empty, error) GetSegment(context.Context, *GetSegmentRequest) (*Segment, error) ListSegments(context.Context, *ListSegmentRequest) (*SegmentList, error) CreateSegment(context.Context, *CreateSegmentRequest) (*Segment, error) UpdateSegment(context.Context, *UpdateSegmentRequest) (*Segment, error) DeleteSegment(context.Context, *DeleteSegmentRequest) (*emptypb.Empty, error) CreateConstraint(context.Context, *CreateConstraintRequest) (*Constraint, error) UpdateConstraint(context.Context, *UpdateConstraintRequest) (*Constraint, error) DeleteConstraint(context.Context, *DeleteConstraintRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
FliptServer is the server API for Flipt service. All implementations must embed UnimplementedFliptServer for forward compatibility
type GetFlagRequest ¶
type GetFlagRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetFlagRequest) Descriptor
deprecated
func (*GetFlagRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFlagRequest.ProtoReflect.Descriptor instead.
func (*GetFlagRequest) GetKey ¶
func (x *GetFlagRequest) GetKey() string
func (*GetFlagRequest) ProtoMessage ¶
func (*GetFlagRequest) ProtoMessage()
func (*GetFlagRequest) ProtoReflect ¶
func (x *GetFlagRequest) ProtoReflect() protoreflect.Message
func (*GetFlagRequest) Reset ¶
func (x *GetFlagRequest) Reset()
func (*GetFlagRequest) String ¶
func (x *GetFlagRequest) String() string
func (*GetFlagRequest) Validate ¶
func (req *GetFlagRequest) Validate() error
type GetRuleRequest ¶
type GetRuleRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FlagKey string `protobuf:"bytes,2,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` // contains filtered or unexported fields }
func (*GetRuleRequest) Descriptor
deprecated
func (*GetRuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRuleRequest.ProtoReflect.Descriptor instead.
func (*GetRuleRequest) GetFlagKey ¶
func (x *GetRuleRequest) GetFlagKey() string
func (*GetRuleRequest) GetId ¶
func (x *GetRuleRequest) GetId() string
func (*GetRuleRequest) ProtoMessage ¶
func (*GetRuleRequest) ProtoMessage()
func (*GetRuleRequest) ProtoReflect ¶
func (x *GetRuleRequest) ProtoReflect() protoreflect.Message
func (*GetRuleRequest) Reset ¶
func (x *GetRuleRequest) Reset()
func (*GetRuleRequest) String ¶
func (x *GetRuleRequest) String() string
func (*GetRuleRequest) Validate ¶
func (req *GetRuleRequest) Validate() error
type GetSegmentRequest ¶
type GetSegmentRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetSegmentRequest) Descriptor
deprecated
func (*GetSegmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSegmentRequest.ProtoReflect.Descriptor instead.
func (*GetSegmentRequest) GetKey ¶
func (x *GetSegmentRequest) GetKey() string
func (*GetSegmentRequest) ProtoMessage ¶
func (*GetSegmentRequest) ProtoMessage()
func (*GetSegmentRequest) ProtoReflect ¶
func (x *GetSegmentRequest) ProtoReflect() protoreflect.Message
func (*GetSegmentRequest) Reset ¶
func (x *GetSegmentRequest) Reset()
func (*GetSegmentRequest) String ¶
func (x *GetSegmentRequest) String() string
func (*GetSegmentRequest) Validate ¶
func (req *GetSegmentRequest) Validate() error
type ListFlagRequest ¶
type ListFlagRequest struct { Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` // Deprecated: Do not use. Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListFlagRequest) Descriptor
deprecated
func (*ListFlagRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFlagRequest.ProtoReflect.Descriptor instead.
func (*ListFlagRequest) GetLimit ¶
func (x *ListFlagRequest) GetLimit() int32
func (*ListFlagRequest) GetOffset
deprecated
func (x *ListFlagRequest) GetOffset() int32
Deprecated: Do not use.
func (*ListFlagRequest) GetPageToken ¶ added in v1.13.0
func (x *ListFlagRequest) GetPageToken() string
func (*ListFlagRequest) ProtoMessage ¶
func (*ListFlagRequest) ProtoMessage()
func (*ListFlagRequest) ProtoReflect ¶
func (x *ListFlagRequest) ProtoReflect() protoreflect.Message
func (*ListFlagRequest) Reset ¶
func (x *ListFlagRequest) Reset()
func (*ListFlagRequest) String ¶
func (x *ListFlagRequest) String() string
func (*ListFlagRequest) Validate ¶ added in v1.13.0
func (req *ListFlagRequest) Validate() error
type ListRuleRequest ¶
type ListRuleRequest struct { Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` // Deprecated: Do not use. Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` FlagKey string `protobuf:"bytes,3,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListRuleRequest) Descriptor
deprecated
func (*ListRuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRuleRequest.ProtoReflect.Descriptor instead.
func (*ListRuleRequest) GetFlagKey ¶
func (x *ListRuleRequest) GetFlagKey() string
func (*ListRuleRequest) GetLimit ¶
func (x *ListRuleRequest) GetLimit() int32
func (*ListRuleRequest) GetOffset
deprecated
func (x *ListRuleRequest) GetOffset() int32
Deprecated: Do not use.
func (*ListRuleRequest) GetPageToken ¶ added in v1.13.0
func (x *ListRuleRequest) GetPageToken() string
func (*ListRuleRequest) ProtoMessage ¶
func (*ListRuleRequest) ProtoMessage()
func (*ListRuleRequest) ProtoReflect ¶
func (x *ListRuleRequest) ProtoReflect() protoreflect.Message
func (*ListRuleRequest) Reset ¶
func (x *ListRuleRequest) Reset()
func (*ListRuleRequest) String ¶
func (x *ListRuleRequest) String() string
func (*ListRuleRequest) Validate ¶
func (req *ListRuleRequest) Validate() error
type ListSegmentRequest ¶
type ListSegmentRequest struct { Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` // Deprecated: Do not use. Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListSegmentRequest) Descriptor
deprecated
func (*ListSegmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSegmentRequest.ProtoReflect.Descriptor instead.
func (*ListSegmentRequest) GetLimit ¶
func (x *ListSegmentRequest) GetLimit() int32
func (*ListSegmentRequest) GetOffset
deprecated
func (x *ListSegmentRequest) GetOffset() int32
Deprecated: Do not use.
func (*ListSegmentRequest) GetPageToken ¶ added in v1.13.0
func (x *ListSegmentRequest) GetPageToken() string
func (*ListSegmentRequest) ProtoMessage ¶
func (*ListSegmentRequest) ProtoMessage()
func (*ListSegmentRequest) ProtoReflect ¶
func (x *ListSegmentRequest) ProtoReflect() protoreflect.Message
func (*ListSegmentRequest) Reset ¶
func (x *ListSegmentRequest) Reset()
func (*ListSegmentRequest) String ¶
func (x *ListSegmentRequest) String() string
func (*ListSegmentRequest) Validate ¶ added in v1.13.0
func (req *ListSegmentRequest) Validate() error
type MatchType ¶
type MatchType int32
func (MatchType) Descriptor ¶
func (MatchType) Descriptor() protoreflect.EnumDescriptor
func (MatchType) EnumDescriptor
deprecated
func (MatchType) Number ¶
func (x MatchType) Number() protoreflect.EnumNumber
func (MatchType) Type ¶
func (MatchType) Type() protoreflect.EnumType
type OrderRulesRequest ¶
type OrderRulesRequest struct { FlagKey string `protobuf:"bytes,1,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` RuleIds []string `protobuf:"bytes,2,rep,name=rule_ids,json=ruleIds,proto3" json:"rule_ids,omitempty"` // contains filtered or unexported fields }
func (*OrderRulesRequest) Descriptor
deprecated
func (*OrderRulesRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrderRulesRequest.ProtoReflect.Descriptor instead.
func (*OrderRulesRequest) GetFlagKey ¶
func (x *OrderRulesRequest) GetFlagKey() string
func (*OrderRulesRequest) GetRuleIds ¶
func (x *OrderRulesRequest) GetRuleIds() []string
func (*OrderRulesRequest) ProtoMessage ¶
func (*OrderRulesRequest) ProtoMessage()
func (*OrderRulesRequest) ProtoReflect ¶
func (x *OrderRulesRequest) ProtoReflect() protoreflect.Message
func (*OrderRulesRequest) Reset ¶
func (x *OrderRulesRequest) Reset()
func (*OrderRulesRequest) String ¶
func (x *OrderRulesRequest) String() string
func (*OrderRulesRequest) Validate ¶
func (req *OrderRulesRequest) Validate() error
type Rule ¶
type Rule struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FlagKey string `protobuf:"bytes,2,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` SegmentKey string `protobuf:"bytes,3,opt,name=segment_key,json=segmentKey,proto3" json:"segment_key,omitempty"` Distributions []*Distribution `protobuf:"bytes,4,rep,name=distributions,proto3" json:"distributions,omitempty"` Rank int32 `protobuf:"varint,5,opt,name=rank,proto3" json:"rank,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"` // contains filtered or unexported fields }
func (*Rule) Descriptor
deprecated
func (*Rule) GetCreatedAt ¶
func (x *Rule) GetCreatedAt() *timestamppb.Timestamp
func (*Rule) GetDistributions ¶
func (x *Rule) GetDistributions() []*Distribution
func (*Rule) GetFlagKey ¶
func (*Rule) GetSegmentKey ¶
func (*Rule) GetUpdatedAt ¶
func (x *Rule) GetUpdatedAt() *timestamppb.Timestamp
func (*Rule) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) ProtoReflect ¶
func (x *Rule) ProtoReflect() protoreflect.Message
type RuleList ¶
type RuleList struct { Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` TotalCount int32 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // contains filtered or unexported fields }
func (*RuleList) Descriptor
deprecated
func (*RuleList) GetNextPageToken ¶ added in v1.13.0
func (*RuleList) GetTotalCount ¶ added in v1.13.0
func (*RuleList) ProtoMessage ¶
func (*RuleList) ProtoMessage()
func (*RuleList) ProtoReflect ¶
func (x *RuleList) ProtoReflect() protoreflect.Message
type Segment ¶
type Segment 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"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Constraints []*Constraint `protobuf:"bytes,6,rep,name=constraints,proto3" json:"constraints,omitempty"` MatchType MatchType `protobuf:"varint,7,opt,name=match_type,json=matchType,proto3,enum=flipt.MatchType" json:"match_type,omitempty"` // contains filtered or unexported fields }
func (*Segment) Descriptor
deprecated
func (*Segment) GetConstraints ¶
func (x *Segment) GetConstraints() []*Constraint
func (*Segment) GetCreatedAt ¶
func (x *Segment) GetCreatedAt() *timestamppb.Timestamp
func (*Segment) GetDescription ¶
func (*Segment) GetMatchType ¶
func (*Segment) GetUpdatedAt ¶
func (x *Segment) GetUpdatedAt() *timestamppb.Timestamp
func (*Segment) ProtoMessage ¶
func (*Segment) ProtoMessage()
func (*Segment) ProtoReflect ¶
func (x *Segment) ProtoReflect() protoreflect.Message
type SegmentList ¶
type SegmentList struct { Segments []*Segment `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` TotalCount int32 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // contains filtered or unexported fields }
func (*SegmentList) Descriptor
deprecated
func (*SegmentList) Descriptor() ([]byte, []int)
Deprecated: Use SegmentList.ProtoReflect.Descriptor instead.
func (*SegmentList) GetNextPageToken ¶ added in v1.13.0
func (x *SegmentList) GetNextPageToken() string
func (*SegmentList) GetSegments ¶
func (x *SegmentList) GetSegments() []*Segment
func (*SegmentList) GetTotalCount ¶ added in v1.13.0
func (x *SegmentList) GetTotalCount() int32
func (*SegmentList) ProtoMessage ¶
func (*SegmentList) ProtoMessage()
func (*SegmentList) ProtoReflect ¶
func (x *SegmentList) ProtoReflect() protoreflect.Message
func (*SegmentList) Reset ¶
func (x *SegmentList) Reset()
func (*SegmentList) String ¶
func (x *SegmentList) String() string
type UnimplementedFliptServer ¶
type UnimplementedFliptServer struct { }
UnimplementedFliptServer must be embedded to have forward compatible implementations.
func (UnimplementedFliptServer) BatchEvaluate ¶
func (UnimplementedFliptServer) BatchEvaluate(context.Context, *BatchEvaluationRequest) (*BatchEvaluationResponse, error)
func (UnimplementedFliptServer) CreateConstraint ¶
func (UnimplementedFliptServer) CreateConstraint(context.Context, *CreateConstraintRequest) (*Constraint, error)
func (UnimplementedFliptServer) CreateDistribution ¶
func (UnimplementedFliptServer) CreateDistribution(context.Context, *CreateDistributionRequest) (*Distribution, error)
func (UnimplementedFliptServer) CreateFlag ¶
func (UnimplementedFliptServer) CreateFlag(context.Context, *CreateFlagRequest) (*Flag, error)
func (UnimplementedFliptServer) CreateRule ¶
func (UnimplementedFliptServer) CreateRule(context.Context, *CreateRuleRequest) (*Rule, error)
func (UnimplementedFliptServer) CreateSegment ¶
func (UnimplementedFliptServer) CreateSegment(context.Context, *CreateSegmentRequest) (*Segment, error)
func (UnimplementedFliptServer) CreateVariant ¶
func (UnimplementedFliptServer) CreateVariant(context.Context, *CreateVariantRequest) (*Variant, error)
func (UnimplementedFliptServer) DeleteConstraint ¶
func (UnimplementedFliptServer) DeleteConstraint(context.Context, *DeleteConstraintRequest) (*emptypb.Empty, error)
func (UnimplementedFliptServer) DeleteDistribution ¶
func (UnimplementedFliptServer) DeleteDistribution(context.Context, *DeleteDistributionRequest) (*emptypb.Empty, error)
func (UnimplementedFliptServer) DeleteFlag ¶
func (UnimplementedFliptServer) DeleteFlag(context.Context, *DeleteFlagRequest) (*emptypb.Empty, error)
func (UnimplementedFliptServer) DeleteRule ¶
func (UnimplementedFliptServer) DeleteRule(context.Context, *DeleteRuleRequest) (*emptypb.Empty, error)
func (UnimplementedFliptServer) DeleteSegment ¶
func (UnimplementedFliptServer) DeleteSegment(context.Context, *DeleteSegmentRequest) (*emptypb.Empty, error)
func (UnimplementedFliptServer) DeleteVariant ¶
func (UnimplementedFliptServer) DeleteVariant(context.Context, *DeleteVariantRequest) (*emptypb.Empty, error)
func (UnimplementedFliptServer) Evaluate ¶
func (UnimplementedFliptServer) Evaluate(context.Context, *EvaluationRequest) (*EvaluationResponse, error)
func (UnimplementedFliptServer) GetFlag ¶
func (UnimplementedFliptServer) GetFlag(context.Context, *GetFlagRequest) (*Flag, error)
func (UnimplementedFliptServer) GetRule ¶
func (UnimplementedFliptServer) GetRule(context.Context, *GetRuleRequest) (*Rule, error)
func (UnimplementedFliptServer) GetSegment ¶
func (UnimplementedFliptServer) GetSegment(context.Context, *GetSegmentRequest) (*Segment, error)
func (UnimplementedFliptServer) ListFlags ¶
func (UnimplementedFliptServer) ListFlags(context.Context, *ListFlagRequest) (*FlagList, error)
func (UnimplementedFliptServer) ListRules ¶
func (UnimplementedFliptServer) ListRules(context.Context, *ListRuleRequest) (*RuleList, error)
func (UnimplementedFliptServer) ListSegments ¶
func (UnimplementedFliptServer) ListSegments(context.Context, *ListSegmentRequest) (*SegmentList, error)
func (UnimplementedFliptServer) OrderRules ¶
func (UnimplementedFliptServer) OrderRules(context.Context, *OrderRulesRequest) (*emptypb.Empty, error)
func (UnimplementedFliptServer) UpdateConstraint ¶
func (UnimplementedFliptServer) UpdateConstraint(context.Context, *UpdateConstraintRequest) (*Constraint, error)
func (UnimplementedFliptServer) UpdateDistribution ¶
func (UnimplementedFliptServer) UpdateDistribution(context.Context, *UpdateDistributionRequest) (*Distribution, error)
func (UnimplementedFliptServer) UpdateFlag ¶
func (UnimplementedFliptServer) UpdateFlag(context.Context, *UpdateFlagRequest) (*Flag, error)
func (UnimplementedFliptServer) UpdateRule ¶
func (UnimplementedFliptServer) UpdateRule(context.Context, *UpdateRuleRequest) (*Rule, error)
func (UnimplementedFliptServer) UpdateSegment ¶
func (UnimplementedFliptServer) UpdateSegment(context.Context, *UpdateSegmentRequest) (*Segment, error)
func (UnimplementedFliptServer) UpdateVariant ¶
func (UnimplementedFliptServer) UpdateVariant(context.Context, *UpdateVariantRequest) (*Variant, error)
type UnsafeFliptServer ¶
type UnsafeFliptServer interface {
// contains filtered or unexported methods
}
UnsafeFliptServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FliptServer will result in compilation errors.
type UpdateConstraintRequest ¶
type UpdateConstraintRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SegmentKey string `protobuf:"bytes,2,opt,name=segment_key,json=segmentKey,proto3" json:"segment_key,omitempty"` Type ComparisonType `protobuf:"varint,3,opt,name=type,proto3,enum=flipt.ComparisonType" json:"type,omitempty"` Property string `protobuf:"bytes,4,opt,name=property,proto3" json:"property,omitempty"` Operator string `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator,omitempty"` Value string `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*UpdateConstraintRequest) Descriptor
deprecated
func (*UpdateConstraintRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateConstraintRequest.ProtoReflect.Descriptor instead.
func (*UpdateConstraintRequest) GetId ¶
func (x *UpdateConstraintRequest) GetId() string
func (*UpdateConstraintRequest) GetOperator ¶
func (x *UpdateConstraintRequest) GetOperator() string
func (*UpdateConstraintRequest) GetProperty ¶
func (x *UpdateConstraintRequest) GetProperty() string
func (*UpdateConstraintRequest) GetSegmentKey ¶
func (x *UpdateConstraintRequest) GetSegmentKey() string
func (*UpdateConstraintRequest) GetType ¶
func (x *UpdateConstraintRequest) GetType() ComparisonType
func (*UpdateConstraintRequest) GetValue ¶
func (x *UpdateConstraintRequest) GetValue() string
func (*UpdateConstraintRequest) ProtoMessage ¶
func (*UpdateConstraintRequest) ProtoMessage()
func (*UpdateConstraintRequest) ProtoReflect ¶
func (x *UpdateConstraintRequest) ProtoReflect() protoreflect.Message
func (*UpdateConstraintRequest) Reset ¶
func (x *UpdateConstraintRequest) Reset()
func (*UpdateConstraintRequest) String ¶
func (x *UpdateConstraintRequest) String() string
func (*UpdateConstraintRequest) Validate ¶
func (req *UpdateConstraintRequest) Validate() error
type UpdateDistributionRequest ¶
type UpdateDistributionRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FlagKey string `protobuf:"bytes,2,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` RuleId string `protobuf:"bytes,3,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` VariantId string `protobuf:"bytes,4,opt,name=variant_id,json=variantId,proto3" json:"variant_id,omitempty"` Rollout float32 `protobuf:"fixed32,5,opt,name=rollout,proto3" json:"rollout,omitempty"` // contains filtered or unexported fields }
func (*UpdateDistributionRequest) Descriptor
deprecated
func (*UpdateDistributionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDistributionRequest.ProtoReflect.Descriptor instead.
func (*UpdateDistributionRequest) GetFlagKey ¶
func (x *UpdateDistributionRequest) GetFlagKey() string
func (*UpdateDistributionRequest) GetId ¶
func (x *UpdateDistributionRequest) GetId() string
func (*UpdateDistributionRequest) GetRollout ¶
func (x *UpdateDistributionRequest) GetRollout() float32
func (*UpdateDistributionRequest) GetRuleId ¶
func (x *UpdateDistributionRequest) GetRuleId() string
func (*UpdateDistributionRequest) GetVariantId ¶
func (x *UpdateDistributionRequest) GetVariantId() string
func (*UpdateDistributionRequest) ProtoMessage ¶
func (*UpdateDistributionRequest) ProtoMessage()
func (*UpdateDistributionRequest) ProtoReflect ¶
func (x *UpdateDistributionRequest) ProtoReflect() protoreflect.Message
func (*UpdateDistributionRequest) Reset ¶
func (x *UpdateDistributionRequest) Reset()
func (*UpdateDistributionRequest) String ¶
func (x *UpdateDistributionRequest) String() string
func (*UpdateDistributionRequest) Validate ¶
func (req *UpdateDistributionRequest) Validate() error
type UpdateFlagRequest ¶
type UpdateFlagRequest 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"` // contains filtered or unexported fields }
func (*UpdateFlagRequest) Descriptor
deprecated
func (*UpdateFlagRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFlagRequest.ProtoReflect.Descriptor instead.
func (*UpdateFlagRequest) GetDescription ¶
func (x *UpdateFlagRequest) GetDescription() string
func (*UpdateFlagRequest) GetEnabled ¶
func (x *UpdateFlagRequest) GetEnabled() bool
func (*UpdateFlagRequest) GetKey ¶
func (x *UpdateFlagRequest) GetKey() string
func (*UpdateFlagRequest) GetName ¶
func (x *UpdateFlagRequest) GetName() string
func (*UpdateFlagRequest) ProtoMessage ¶
func (*UpdateFlagRequest) ProtoMessage()
func (*UpdateFlagRequest) ProtoReflect ¶
func (x *UpdateFlagRequest) ProtoReflect() protoreflect.Message
func (*UpdateFlagRequest) Reset ¶
func (x *UpdateFlagRequest) Reset()
func (*UpdateFlagRequest) String ¶
func (x *UpdateFlagRequest) String() string
func (*UpdateFlagRequest) Validate ¶
func (req *UpdateFlagRequest) Validate() error
type UpdateRuleRequest ¶
type UpdateRuleRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FlagKey string `protobuf:"bytes,2,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` SegmentKey string `protobuf:"bytes,3,opt,name=segment_key,json=segmentKey,proto3" json:"segment_key,omitempty"` // contains filtered or unexported fields }
func (*UpdateRuleRequest) Descriptor
deprecated
func (*UpdateRuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRuleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRuleRequest) GetFlagKey ¶
func (x *UpdateRuleRequest) GetFlagKey() string
func (*UpdateRuleRequest) GetId ¶
func (x *UpdateRuleRequest) GetId() string
func (*UpdateRuleRequest) GetSegmentKey ¶
func (x *UpdateRuleRequest) GetSegmentKey() string
func (*UpdateRuleRequest) ProtoMessage ¶
func (*UpdateRuleRequest) ProtoMessage()
func (*UpdateRuleRequest) ProtoReflect ¶
func (x *UpdateRuleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRuleRequest) Reset ¶
func (x *UpdateRuleRequest) Reset()
func (*UpdateRuleRequest) String ¶
func (x *UpdateRuleRequest) String() string
func (*UpdateRuleRequest) Validate ¶
func (req *UpdateRuleRequest) Validate() error
type UpdateSegmentRequest ¶
type UpdateSegmentRequest 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 MatchType `protobuf:"varint,4,opt,name=match_type,json=matchType,proto3,enum=flipt.MatchType" json:"match_type,omitempty"` // contains filtered or unexported fields }
func (*UpdateSegmentRequest) Descriptor
deprecated
func (*UpdateSegmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSegmentRequest.ProtoReflect.Descriptor instead.
func (*UpdateSegmentRequest) GetDescription ¶
func (x *UpdateSegmentRequest) GetDescription() string
func (*UpdateSegmentRequest) GetKey ¶
func (x *UpdateSegmentRequest) GetKey() string
func (*UpdateSegmentRequest) GetMatchType ¶
func (x *UpdateSegmentRequest) GetMatchType() MatchType
func (*UpdateSegmentRequest) GetName ¶
func (x *UpdateSegmentRequest) GetName() string
func (*UpdateSegmentRequest) ProtoMessage ¶
func (*UpdateSegmentRequest) ProtoMessage()
func (*UpdateSegmentRequest) ProtoReflect ¶
func (x *UpdateSegmentRequest) ProtoReflect() protoreflect.Message
func (*UpdateSegmentRequest) Reset ¶
func (x *UpdateSegmentRequest) Reset()
func (*UpdateSegmentRequest) String ¶
func (x *UpdateSegmentRequest) String() string
func (*UpdateSegmentRequest) Validate ¶
func (req *UpdateSegmentRequest) Validate() error
type UpdateVariantRequest ¶
type UpdateVariantRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FlagKey string `protobuf:"bytes,2,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Attachment string `protobuf:"bytes,6,opt,name=attachment,proto3" json:"attachment,omitempty"` // contains filtered or unexported fields }
func (*UpdateVariantRequest) Descriptor
deprecated
func (*UpdateVariantRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateVariantRequest.ProtoReflect.Descriptor instead.
func (*UpdateVariantRequest) GetAttachment ¶
func (x *UpdateVariantRequest) GetAttachment() string
func (*UpdateVariantRequest) GetDescription ¶
func (x *UpdateVariantRequest) GetDescription() string
func (*UpdateVariantRequest) GetFlagKey ¶
func (x *UpdateVariantRequest) GetFlagKey() string
func (*UpdateVariantRequest) GetId ¶
func (x *UpdateVariantRequest) GetId() string
func (*UpdateVariantRequest) GetKey ¶
func (x *UpdateVariantRequest) GetKey() string
func (*UpdateVariantRequest) GetName ¶
func (x *UpdateVariantRequest) GetName() string
func (*UpdateVariantRequest) ProtoMessage ¶
func (*UpdateVariantRequest) ProtoMessage()
func (*UpdateVariantRequest) ProtoReflect ¶
func (x *UpdateVariantRequest) ProtoReflect() protoreflect.Message
func (*UpdateVariantRequest) Reset ¶
func (x *UpdateVariantRequest) Reset()
func (*UpdateVariantRequest) String ¶
func (x *UpdateVariantRequest) String() string
func (*UpdateVariantRequest) Validate ¶
func (req *UpdateVariantRequest) Validate() error
type V1toV2MarshallerAdapter ¶
type V1toV2MarshallerAdapter struct {
*grpc_gateway_v1.JSONPb
}
V1toV2MarshallerAdapter is a V1 to V2 marshaller adapter to be able to use the v1 marshaller from grpc-gateway v2.
This is required to fix a backwards compatibility issue with the v2 marshaller where `null` map values cause an error because they are not allowed by the proto spec, but they were handled by the v1 marshaller.
See: https://github.com/flipt-io/flipt/issues/664
TODO: remove this custom marshaller for Flipt API v2 as we want to use the default v2 marshaller directly.
func NewV1toV2MarshallerAdapter ¶
func NewV1toV2MarshallerAdapter() *V1toV2MarshallerAdapter
func (*V1toV2MarshallerAdapter) ContentType ¶
func (m *V1toV2MarshallerAdapter) ContentType(_ interface{}) string
func (*V1toV2MarshallerAdapter) Marshal ¶
func (m *V1toV2MarshallerAdapter) Marshal(v interface{}) ([]byte, error)
func (*V1toV2MarshallerAdapter) NewDecoder ¶
func (m *V1toV2MarshallerAdapter) NewDecoder(r io.Reader) grpc_gateway_v2.Decoder
func (*V1toV2MarshallerAdapter) NewEncoder ¶
func (m *V1toV2MarshallerAdapter) NewEncoder(w io.Writer) grpc_gateway_v2.Encoder
type Variant ¶
type Variant struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FlagKey string `protobuf:"bytes,2,opt,name=flag_key,json=flagKey,proto3" json:"flag_key,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,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"` Attachment string `protobuf:"bytes,8,opt,name=attachment,proto3" json:"attachment,omitempty"` // contains filtered or unexported fields }
func (*Variant) Descriptor
deprecated
func (*Variant) GetAttachment ¶
func (*Variant) GetCreatedAt ¶
func (x *Variant) GetCreatedAt() *timestamppb.Timestamp
func (*Variant) GetDescription ¶
func (*Variant) GetFlagKey ¶
func (*Variant) GetUpdatedAt ¶
func (x *Variant) GetUpdatedAt() *timestamppb.Timestamp
func (*Variant) ProtoMessage ¶
func (*Variant) ProtoMessage()
func (*Variant) ProtoReflect ¶
func (x *Variant) ProtoReflect() protoreflect.Message