Documentation ¶
Overview ¶
Package user_flex_feature is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterUserFlexFeatureServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserFlexFeatureServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterUserFlexFeatureServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserFlexFeatureServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterUserFlexFeatureServiceServer(s grpc.ServiceRegistrar, srv UserFlexFeatureServiceServer)
- type GeneralErrorResponse
- func (*GeneralErrorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GeneralErrorResponse) GetErrorCode() string
- func (x *GeneralErrorResponse) GetErrorDetails() string
- func (*GeneralErrorResponse) ProtoMessage()
- func (x *GeneralErrorResponse) ProtoReflect() protoreflect.Message
- func (x *GeneralErrorResponse) Reset()
- func (x *GeneralErrorResponse) String() string
- type Percentage
- type ProgressiveRollout
- func (*ProgressiveRollout) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressiveRollout) GetEnd() *ProgressiveRolloutStep
- func (x *ProgressiveRollout) GetInitial() *ProgressiveRolloutStep
- func (*ProgressiveRollout) ProtoMessage()
- func (x *ProgressiveRollout) ProtoReflect() protoreflect.Message
- func (x *ProgressiveRollout) Reset()
- func (x *ProgressiveRollout) String() string
- type ProgressiveRolloutStep
- func (*ProgressiveRolloutStep) Descriptor() ([]byte, []int)deprecated
- func (m *ProgressiveRolloutStep) GetDate() isProgressiveRolloutStep_Date
- func (x *ProgressiveRolloutStep) GetDateValue() string
- func (m *ProgressiveRolloutStep) GetPercentage() isProgressiveRolloutStep_Percentage
- func (x *ProgressiveRolloutStep) GetPercentageValue() float64
- func (m *ProgressiveRolloutStep) GetVariation() isProgressiveRolloutStep_Variation
- func (x *ProgressiveRolloutStep) GetVariationValue() string
- func (*ProgressiveRolloutStep) ProtoMessage()
- func (x *ProgressiveRolloutStep) ProtoReflect() protoreflect.Message
- func (x *ProgressiveRolloutStep) Reset()
- func (x *ProgressiveRolloutStep) String() string
- type ProgressiveRolloutStep_DateValue
- type ProgressiveRolloutStep_PercentageValue
- type ProgressiveRolloutStep_VariationValue
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)deprecated
- func (m *Rule) GetDisable() isRule_Disable
- func (x *Rule) GetDisableValue() bool
- func (x *Rule) GetName() string
- func (m *Rule) GetPercentage() isRule_Percentage
- func (x *Rule) GetPercentageValue() *Percentage
- func (m *Rule) GetProgressiveRollout() isRule_ProgressiveRollout
- func (x *Rule) GetProgressiveRolloutValue() *ProgressiveRollout
- func (x *Rule) GetQuery() string
- func (x *Rule) GetVariationResult() string
- func (*Rule) ProtoMessage()
- func (x *Rule) ProtoReflect() protoreflect.Message
- func (x *Rule) Reset()
- func (x *Rule) String() string
- type RuleUpdateRequest
- func (*RuleUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RuleUpdateRequest) GetKey() string
- func (x *RuleUpdateRequest) GetRule() *Rule
- func (*RuleUpdateRequest) ProtoMessage()
- func (x *RuleUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *RuleUpdateRequest) Reset()
- func (x *RuleUpdateRequest) String() string
- type RuleUpdateResponse
- func (*RuleUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RuleUpdateResponse) GetResult() bool
- func (*RuleUpdateResponse) ProtoMessage()
- func (x *RuleUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *RuleUpdateResponse) Reset()
- func (x *RuleUpdateResponse) String() string
- type Rule_DisableValue
- type Rule_PercentageValue
- type Rule_ProgressiveRolloutValue
- type UnimplementedUserFlexFeatureServiceServer
- type UnsafeUserFlexFeatureServiceServer
- type UserFlexFeatureServiceClient
- type UserFlexFeatureServiceServer
Constants ¶
const (
UserFlexFeatureService_RuleUpdate_FullMethodName = "/user_flex_feature.v1.UserFlexFeatureService/RuleUpdate"
)
Variables ¶
var File_docs_schema_user_flex_feature_v1_schema_proto protoreflect.FileDescriptor
var UserFlexFeatureService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user_flex_feature.v1.UserFlexFeatureService", HandlerType: (*UserFlexFeatureServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RuleUpdate", Handler: _UserFlexFeatureService_RuleUpdate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "docs/schema/user-flex-feature/v1/schema.proto", }
UserFlexFeatureService_ServiceDesc is the grpc.ServiceDesc for UserFlexFeatureService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserFlexFeatureServiceHandler ¶
func RegisterUserFlexFeatureServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserFlexFeatureServiceHandler registers the http handlers for service UserFlexFeatureService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserFlexFeatureServiceHandlerClient ¶
func RegisterUserFlexFeatureServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserFlexFeatureServiceClient) error
RegisterUserFlexFeatureServiceHandlerClient registers the http handlers for service UserFlexFeatureService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserFlexFeatureServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserFlexFeatureServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserFlexFeatureServiceClient" to call the correct interceptors.
func RegisterUserFlexFeatureServiceHandlerFromEndpoint ¶
func RegisterUserFlexFeatureServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserFlexFeatureServiceHandlerFromEndpoint is same as RegisterUserFlexFeatureServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserFlexFeatureServiceHandlerServer ¶
func RegisterUserFlexFeatureServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserFlexFeatureServiceServer) error
RegisterUserFlexFeatureServiceHandlerServer registers the http handlers for service UserFlexFeatureService to "mux". UnaryRPC :call UserFlexFeatureServiceServer 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 RegisterUserFlexFeatureServiceHandlerFromEndpoint instead.
func RegisterUserFlexFeatureServiceServer ¶
func RegisterUserFlexFeatureServiceServer(s grpc.ServiceRegistrar, srv UserFlexFeatureServiceServer)
Types ¶
type GeneralErrorResponse ¶
type GeneralErrorResponse struct { ErrorCode string `protobuf:"bytes,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` ErrorDetails string `protobuf:"bytes,2,opt,name=error_details,json=errorDetails,proto3" json:"error_details,omitempty"` // contains filtered or unexported fields }
func (*GeneralErrorResponse) Descriptor
deprecated
func (*GeneralErrorResponse) Descriptor() ([]byte, []int)
Deprecated: Use GeneralErrorResponse.ProtoReflect.Descriptor instead.
func (*GeneralErrorResponse) GetErrorCode ¶
func (x *GeneralErrorResponse) GetErrorCode() string
func (*GeneralErrorResponse) GetErrorDetails ¶
func (x *GeneralErrorResponse) GetErrorDetails() string
func (*GeneralErrorResponse) ProtoMessage ¶
func (*GeneralErrorResponse) ProtoMessage()
func (*GeneralErrorResponse) ProtoReflect ¶
func (x *GeneralErrorResponse) ProtoReflect() protoreflect.Message
func (*GeneralErrorResponse) Reset ¶
func (x *GeneralErrorResponse) Reset()
func (*GeneralErrorResponse) String ¶
func (x *GeneralErrorResponse) String() string
type Percentage ¶
type Percentage struct { Value map[string]float64 `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Percentage) Descriptor
deprecated
func (*Percentage) Descriptor() ([]byte, []int)
Deprecated: Use Percentage.ProtoReflect.Descriptor instead.
func (*Percentage) GetValue ¶
func (x *Percentage) GetValue() map[string]float64
func (*Percentage) ProtoMessage ¶
func (*Percentage) ProtoMessage()
func (*Percentage) ProtoReflect ¶
func (x *Percentage) ProtoReflect() protoreflect.Message
func (*Percentage) Reset ¶
func (x *Percentage) Reset()
func (*Percentage) String ¶
func (x *Percentage) String() string
type ProgressiveRollout ¶
type ProgressiveRollout struct { Initial *ProgressiveRolloutStep `protobuf:"bytes,1,opt,name=initial,proto3" json:"initial,omitempty"` End *ProgressiveRolloutStep `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*ProgressiveRollout) Descriptor
deprecated
func (*ProgressiveRollout) Descriptor() ([]byte, []int)
Deprecated: Use ProgressiveRollout.ProtoReflect.Descriptor instead.
func (*ProgressiveRollout) GetEnd ¶
func (x *ProgressiveRollout) GetEnd() *ProgressiveRolloutStep
func (*ProgressiveRollout) GetInitial ¶
func (x *ProgressiveRollout) GetInitial() *ProgressiveRolloutStep
func (*ProgressiveRollout) ProtoMessage ¶
func (*ProgressiveRollout) ProtoMessage()
func (*ProgressiveRollout) ProtoReflect ¶
func (x *ProgressiveRollout) ProtoReflect() protoreflect.Message
func (*ProgressiveRollout) Reset ¶
func (x *ProgressiveRollout) Reset()
func (*ProgressiveRollout) String ¶
func (x *ProgressiveRollout) String() string
type ProgressiveRolloutStep ¶
type ProgressiveRolloutStep struct { // Types that are assignable to Variation: // // *ProgressiveRolloutStep_VariationValue Variation isProgressiveRolloutStep_Variation `protobuf_oneof:"variation"` // Types that are assignable to Percentage: // // *ProgressiveRolloutStep_PercentageValue Percentage isProgressiveRolloutStep_Percentage `protobuf_oneof:"percentage"` // Types that are assignable to Date: // // *ProgressiveRolloutStep_DateValue Date isProgressiveRolloutStep_Date `protobuf_oneof:"date"` // contains filtered or unexported fields }
func (*ProgressiveRolloutStep) Descriptor
deprecated
func (*ProgressiveRolloutStep) Descriptor() ([]byte, []int)
Deprecated: Use ProgressiveRolloutStep.ProtoReflect.Descriptor instead.
func (*ProgressiveRolloutStep) GetDate ¶
func (m *ProgressiveRolloutStep) GetDate() isProgressiveRolloutStep_Date
func (*ProgressiveRolloutStep) GetDateValue ¶
func (x *ProgressiveRolloutStep) GetDateValue() string
func (*ProgressiveRolloutStep) GetPercentage ¶
func (m *ProgressiveRolloutStep) GetPercentage() isProgressiveRolloutStep_Percentage
func (*ProgressiveRolloutStep) GetPercentageValue ¶
func (x *ProgressiveRolloutStep) GetPercentageValue() float64
func (*ProgressiveRolloutStep) GetVariation ¶
func (m *ProgressiveRolloutStep) GetVariation() isProgressiveRolloutStep_Variation
func (*ProgressiveRolloutStep) GetVariationValue ¶
func (x *ProgressiveRolloutStep) GetVariationValue() string
func (*ProgressiveRolloutStep) ProtoMessage ¶
func (*ProgressiveRolloutStep) ProtoMessage()
func (*ProgressiveRolloutStep) ProtoReflect ¶
func (x *ProgressiveRolloutStep) ProtoReflect() protoreflect.Message
func (*ProgressiveRolloutStep) Reset ¶
func (x *ProgressiveRolloutStep) Reset()
func (*ProgressiveRolloutStep) String ¶
func (x *ProgressiveRolloutStep) String() string
type ProgressiveRolloutStep_DateValue ¶
type ProgressiveRolloutStep_DateValue struct {
DateValue string `protobuf:"bytes,3,opt,name=date_value,json=dateValue,proto3,oneof"`
}
type ProgressiveRolloutStep_PercentageValue ¶
type ProgressiveRolloutStep_PercentageValue struct {
PercentageValue float64 `protobuf:"fixed64,2,opt,name=percentage_value,json=percentageValue,proto3,oneof"`
}
type ProgressiveRolloutStep_VariationValue ¶
type ProgressiveRolloutStep_VariationValue struct {
VariationValue string `protobuf:"bytes,1,opt,name=variation_value,json=variationValue,proto3,oneof"`
}
type Rule ¶
type Rule struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` VariationResult string `protobuf:"bytes,2,opt,name=variation_result,json=variationResult,proto3" json:"variation_result,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` // Types that are assignable to Percentage: // // *Rule_PercentageValue Percentage isRule_Percentage `protobuf_oneof:"percentage"` // Types that are assignable to ProgressiveRollout: // // *Rule_ProgressiveRolloutValue ProgressiveRollout isRule_ProgressiveRollout `protobuf_oneof:"progressive_rollout"` // Types that are assignable to Disable: // // *Rule_DisableValue Disable isRule_Disable `protobuf_oneof:"disable"` // contains filtered or unexported fields }
func (*Rule) Descriptor
deprecated
func (*Rule) GetDisable ¶
func (m *Rule) GetDisable() isRule_Disable
func (*Rule) GetDisableValue ¶
func (*Rule) GetPercentage ¶
func (m *Rule) GetPercentage() isRule_Percentage
func (*Rule) GetPercentageValue ¶
func (x *Rule) GetPercentageValue() *Percentage
func (*Rule) GetProgressiveRollout ¶
func (m *Rule) GetProgressiveRollout() isRule_ProgressiveRollout
func (*Rule) GetProgressiveRolloutValue ¶
func (x *Rule) GetProgressiveRolloutValue() *ProgressiveRollout
func (*Rule) GetVariationResult ¶
func (*Rule) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) ProtoReflect ¶
func (x *Rule) ProtoReflect() protoreflect.Message
type RuleUpdateRequest ¶
type RuleUpdateRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Rule *Rule `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` // contains filtered or unexported fields }
func (*RuleUpdateRequest) Descriptor
deprecated
func (*RuleUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use RuleUpdateRequest.ProtoReflect.Descriptor instead.
func (*RuleUpdateRequest) GetKey ¶
func (x *RuleUpdateRequest) GetKey() string
func (*RuleUpdateRequest) GetRule ¶
func (x *RuleUpdateRequest) GetRule() *Rule
func (*RuleUpdateRequest) ProtoMessage ¶
func (*RuleUpdateRequest) ProtoMessage()
func (*RuleUpdateRequest) ProtoReflect ¶
func (x *RuleUpdateRequest) ProtoReflect() protoreflect.Message
func (*RuleUpdateRequest) Reset ¶
func (x *RuleUpdateRequest) Reset()
func (*RuleUpdateRequest) String ¶
func (x *RuleUpdateRequest) String() string
type RuleUpdateResponse ¶
type RuleUpdateResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*RuleUpdateResponse) Descriptor
deprecated
func (*RuleUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use RuleUpdateResponse.ProtoReflect.Descriptor instead.
func (*RuleUpdateResponse) GetResult ¶
func (x *RuleUpdateResponse) GetResult() bool
func (*RuleUpdateResponse) ProtoMessage ¶
func (*RuleUpdateResponse) ProtoMessage()
func (*RuleUpdateResponse) ProtoReflect ¶
func (x *RuleUpdateResponse) ProtoReflect() protoreflect.Message
func (*RuleUpdateResponse) Reset ¶
func (x *RuleUpdateResponse) Reset()
func (*RuleUpdateResponse) String ¶
func (x *RuleUpdateResponse) String() string
type Rule_DisableValue ¶
type Rule_DisableValue struct {
DisableValue bool `protobuf:"varint,6,opt,name=disable_value,json=disableValue,proto3,oneof"`
}
type Rule_PercentageValue ¶
type Rule_PercentageValue struct {
PercentageValue *Percentage `protobuf:"bytes,4,opt,name=percentage_value,json=percentageValue,proto3,oneof"`
}
type Rule_ProgressiveRolloutValue ¶
type Rule_ProgressiveRolloutValue struct {
ProgressiveRolloutValue *ProgressiveRollout `protobuf:"bytes,5,opt,name=progressive_rollout_value,json=progressiveRolloutValue,proto3,oneof"`
}
type UnimplementedUserFlexFeatureServiceServer ¶
type UnimplementedUserFlexFeatureServiceServer struct { }
UnimplementedUserFlexFeatureServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUserFlexFeatureServiceServer) RuleUpdate ¶
func (UnimplementedUserFlexFeatureServiceServer) RuleUpdate(context.Context, *RuleUpdateRequest) (*RuleUpdateResponse, error)
type UnsafeUserFlexFeatureServiceServer ¶
type UnsafeUserFlexFeatureServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserFlexFeatureServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserFlexFeatureServiceServer will result in compilation errors.
type UserFlexFeatureServiceClient ¶
type UserFlexFeatureServiceClient interface {
RuleUpdate(ctx context.Context, in *RuleUpdateRequest, opts ...grpc.CallOption) (*RuleUpdateResponse, error)
}
UserFlexFeatureServiceClient is the client API for UserFlexFeatureService 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 NewUserFlexFeatureServiceClient ¶
func NewUserFlexFeatureServiceClient(cc grpc.ClientConnInterface) UserFlexFeatureServiceClient
type UserFlexFeatureServiceServer ¶
type UserFlexFeatureServiceServer interface {
RuleUpdate(context.Context, *RuleUpdateRequest) (*RuleUpdateResponse, error)
}
UserFlexFeatureServiceServer is the server API for UserFlexFeatureService service. All implementations should embed UnimplementedUserFlexFeatureServiceServer for forward compatibility