flipt

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: GPL-3.0, MIT Imports: 24 Imported by: 11

Documentation

Overview

Package flipt is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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

View Source
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.

View Source
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.

View Source
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.

View Source
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: {},
	}
)
View Source
var File_flipt_proto protoreflect.FileDescriptor
View Source
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

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

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

func (x ComparisonType) Enum() *ComparisonType

func (ComparisonType) EnumDescriptor deprecated

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

Deprecated: Use ComparisonType.Descriptor instead.

func (ComparisonType) Number

func (ComparisonType) String

func (x ComparisonType) String() string

func (ComparisonType) Type

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 (*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 (*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 (*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) Enum added in v1.14.0

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 (EvaluationReason) String added in v1.14.0

func (x EvaluationReason) String() string

func (EvaluationReason) Type added in v1.14.0

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) Descriptor() ([]byte, []int)

Deprecated: Use Flag.ProtoReflect.Descriptor instead.

func (*Flag) GetCreatedAt

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

func (*Flag) GetDescription

func (x *Flag) GetDescription() string

func (*Flag) GetEnabled

func (x *Flag) GetEnabled() bool

func (*Flag) GetKey

func (x *Flag) GetKey() string

func (*Flag) GetName

func (x *Flag) GetName() string

func (*Flag) GetUpdatedAt

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

func (*Flag) GetVariants

func (x *Flag) GetVariants() []*Variant

func (*Flag) ProtoMessage

func (*Flag) ProtoMessage()

func (*Flag) ProtoReflect

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

func (*Flag) Reset

func (x *Flag) Reset()

func (*Flag) String

func (x *Flag) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FlagList.ProtoReflect.Descriptor instead.

func (*FlagList) GetFlags

func (x *FlagList) GetFlags() []*Flag

func (*FlagList) GetNextPageToken added in v1.13.0

func (x *FlagList) GetNextPageToken() string

func (*FlagList) GetTotalCount added in v1.13.0

func (x *FlagList) GetTotalCount() int32

func (*FlagList) ProtoMessage

func (*FlagList) ProtoMessage()

func (*FlagList) ProtoReflect

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

func (*FlagList) Reset

func (x *FlagList) Reset()

func (*FlagList) String

func (x *FlagList) String() string

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
const (
	MatchType_ALL_MATCH_TYPE MatchType = 0
	MatchType_ANY_MATCH_TYPE MatchType = 1
)

func (MatchType) Descriptor

func (MatchType) Descriptor() protoreflect.EnumDescriptor

func (MatchType) Enum

func (x MatchType) Enum() *MatchType

func (MatchType) EnumDescriptor deprecated

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

Deprecated: Use MatchType.Descriptor instead.

func (MatchType) Number

func (x MatchType) Number() protoreflect.EnumNumber

func (MatchType) String

func (x MatchType) String() string

func (MatchType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetCreatedAt

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

func (*Rule) GetDistributions

func (x *Rule) GetDistributions() []*Distribution

func (*Rule) GetFlagKey

func (x *Rule) GetFlagKey() string

func (*Rule) GetId

func (x *Rule) GetId() string

func (*Rule) GetRank

func (x *Rule) GetRank() int32

func (*Rule) GetSegmentKey

func (x *Rule) GetSegmentKey() string

func (*Rule) GetUpdatedAt

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

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect

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

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RuleList.ProtoReflect.Descriptor instead.

func (*RuleList) GetNextPageToken added in v1.13.0

func (x *RuleList) GetNextPageToken() string

func (*RuleList) GetRules

func (x *RuleList) GetRules() []*Rule

func (*RuleList) GetTotalCount added in v1.13.0

func (x *RuleList) GetTotalCount() int32

func (*RuleList) ProtoMessage

func (*RuleList) ProtoMessage()

func (*RuleList) ProtoReflect

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

func (*RuleList) Reset

func (x *RuleList) Reset()

func (*RuleList) String

func (x *RuleList) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Segment.ProtoReflect.Descriptor instead.

func (*Segment) GetConstraints

func (x *Segment) GetConstraints() []*Constraint

func (*Segment) GetCreatedAt

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

func (*Segment) GetDescription

func (x *Segment) GetDescription() string

func (*Segment) GetKey

func (x *Segment) GetKey() string

func (*Segment) GetMatchType

func (x *Segment) GetMatchType() MatchType

func (*Segment) GetName

func (x *Segment) GetName() string

func (*Segment) GetUpdatedAt

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

func (*Segment) ProtoMessage

func (*Segment) ProtoMessage()

func (*Segment) ProtoReflect

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

func (*Segment) Reset

func (x *Segment) Reset()

func (*Segment) String

func (x *Segment) String() string

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

func (UnimplementedFliptServer) CreateDistribution

func (UnimplementedFliptServer) CreateFlag

func (UnimplementedFliptServer) CreateRule

func (UnimplementedFliptServer) CreateSegment

func (UnimplementedFliptServer) CreateVariant

func (UnimplementedFliptServer) DeleteConstraint

func (UnimplementedFliptServer) DeleteDistribution

func (UnimplementedFliptServer) DeleteFlag

func (UnimplementedFliptServer) DeleteRule

func (UnimplementedFliptServer) DeleteSegment

func (UnimplementedFliptServer) DeleteVariant

func (UnimplementedFliptServer) Evaluate

func (UnimplementedFliptServer) GetFlag

func (UnimplementedFliptServer) GetRule

func (UnimplementedFliptServer) GetSegment

func (UnimplementedFliptServer) ListFlags

func (UnimplementedFliptServer) ListRules

func (UnimplementedFliptServer) ListSegments

func (UnimplementedFliptServer) OrderRules

func (UnimplementedFliptServer) UpdateConstraint

func (UnimplementedFliptServer) UpdateDistribution

func (UnimplementedFliptServer) UpdateFlag

func (UnimplementedFliptServer) UpdateRule

func (UnimplementedFliptServer) UpdateSegment

func (UnimplementedFliptServer) UpdateVariant

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 (*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 (*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 (*V1toV2MarshallerAdapter) NewEncoder

type Validator

type Validator interface {
	Validate() error
}

Validator validates types

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) Descriptor() ([]byte, []int)

Deprecated: Use Variant.ProtoReflect.Descriptor instead.

func (*Variant) GetAttachment

func (x *Variant) GetAttachment() string

func (*Variant) GetCreatedAt

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

func (*Variant) GetDescription

func (x *Variant) GetDescription() string

func (*Variant) GetFlagKey

func (x *Variant) GetFlagKey() string

func (*Variant) GetId

func (x *Variant) GetId() string

func (*Variant) GetKey

func (x *Variant) GetKey() string

func (*Variant) GetName

func (x *Variant) GetName() string

func (*Variant) GetUpdatedAt

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

func (*Variant) ProtoMessage

func (*Variant) ProtoMessage()

func (*Variant) ProtoReflect

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

func (*Variant) Reset

func (x *Variant) Reset()

func (*Variant) String

func (x *Variant) String() string

Directories

Path Synopsis
Package auth is a reverse proxy.
Package auth is a reverse proxy.
Package meta is a reverse proxy.
Package meta is a reverse proxy.

Jump to

Keyboard shortcuts

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