Documentation
¶
Overview ¶
Package ofrep is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterOFREPServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterOFREPServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OFREPServiceClient) error
- func RegisterOFREPServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterOFREPServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OFREPServiceServer) error
- func RegisterOFREPServiceServer(s grpc.ServiceRegistrar, srv OFREPServiceServer)
- type Capability
- type Configuration
- func (*Configuration) Descriptor() ([]byte, []int)deprecated
- func (x *Configuration) GetCapabilities() *Capability
- func (x *Configuration) GetName() string
- func (*Configuration) ProtoMessage()
- func (x *Configuration) ProtoReflect() protoreflect.Message
- func (x *Configuration) Reset()
- func (x *Configuration) String() string
- type EvaluateFlagRequest
- func (*EvaluateFlagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateFlagRequest) GetContext() *EvaluationContext
- func (x *EvaluateFlagRequest) GetKey() string
- func (*EvaluateFlagRequest) ProtoMessage()
- func (x *EvaluateFlagRequest) ProtoReflect() protoreflect.Message
- func (x *EvaluateFlagRequest) Reset()
- func (x *EvaluateFlagRequest) String() string
- type EvaluateFlagResponse
- func (*EvaluateFlagResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateFlagResponse) GetFailure() *EvaluationFailure
- func (m *EvaluateFlagResponse) GetResult() isEvaluateFlagResponse_Result
- func (x *EvaluateFlagResponse) GetSuccess() *EvaluationSuccess
- func (*EvaluateFlagResponse) ProtoMessage()
- func (x *EvaluateFlagResponse) ProtoReflect() protoreflect.Message
- func (x *EvaluateFlagResponse) Reset()
- func (x *EvaluateFlagResponse) String() string
- type EvaluateFlagResponse_Failure
- type EvaluateFlagResponse_Success
- type EvaluateFlagsBulkRequest
- func (*EvaluateFlagsBulkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateFlagsBulkRequest) GetContext() *EvaluationContext
- func (*EvaluateFlagsBulkRequest) ProtoMessage()
- func (x *EvaluateFlagsBulkRequest) ProtoReflect() protoreflect.Message
- func (x *EvaluateFlagsBulkRequest) Reset()
- func (x *EvaluateFlagsBulkRequest) String() string
- type EvaluateFlagsBulkResponse
- func (*EvaluateFlagsBulkResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateFlagsBulkResponse) GetETag() string
- func (x *EvaluateFlagsBulkResponse) GetFlags() []*EvaluationResult
- func (*EvaluateFlagsBulkResponse) ProtoMessage()
- func (x *EvaluateFlagsBulkResponse) ProtoReflect() protoreflect.Message
- func (x *EvaluateFlagsBulkResponse) Reset()
- func (x *EvaluateFlagsBulkResponse) String() string
- type EvaluationContext
- func (*EvaluationContext) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluationContext) GetProperties() *structpb.Struct
- func (*EvaluationContext) ProtoMessage()
- func (x *EvaluationContext) ProtoReflect() protoreflect.Message
- func (x *EvaluationContext) Reset()
- func (x *EvaluationContext) String() string
- type EvaluationFailure
- func (*EvaluationFailure) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluationFailure) GetErrorCode() string
- func (x *EvaluationFailure) GetErrorDetails() string
- func (x *EvaluationFailure) GetKey() string
- func (*EvaluationFailure) ProtoMessage()
- func (x *EvaluationFailure) ProtoReflect() protoreflect.Message
- func (x *EvaluationFailure) Reset()
- func (x *EvaluationFailure) String() string
- type EvaluationResult
- func (*EvaluationResult) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluationResult) GetFailure() *EvaluationFailure
- func (m *EvaluationResult) GetResult() isEvaluationResult_Result
- func (x *EvaluationResult) GetSuccess() *EvaluationSuccess
- func (*EvaluationResult) ProtoMessage()
- func (x *EvaluationResult) ProtoReflect() protoreflect.Message
- func (x *EvaluationResult) Reset()
- func (x *EvaluationResult) String() string
- type EvaluationResult_Failure
- type EvaluationResult_Success
- type EvaluationSuccess
- func (*EvaluationSuccess) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluationSuccess) GetBoolValue() bool
- func (x *EvaluationSuccess) GetDoubleValue() float64
- func (x *EvaluationSuccess) GetIntegerValue() int64
- func (x *EvaluationSuccess) GetKey() string
- func (x *EvaluationSuccess) GetMetadata() map[string]*Metadata
- func (x *EvaluationSuccess) GetObjectValue() *structpb.Struct
- func (x *EvaluationSuccess) GetReason() string
- func (x *EvaluationSuccess) GetStringValue() string
- func (m *EvaluationSuccess) GetValue() isEvaluationSuccess_Value
- func (x *EvaluationSuccess) GetVariant() string
- func (*EvaluationSuccess) ProtoMessage()
- func (x *EvaluationSuccess) ProtoReflect() protoreflect.Message
- func (x *EvaluationSuccess) Reset()
- func (x *EvaluationSuccess) String() string
- type EvaluationSuccess_BoolValue
- type EvaluationSuccess_DoubleValue
- type EvaluationSuccess_IntegerValue
- type EvaluationSuccess_ObjectValue
- type EvaluationSuccess_StringValue
- type FeatureCacheInvalidation
- func (*FeatureCacheInvalidation) Descriptor() ([]byte, []int)deprecated
- func (x *FeatureCacheInvalidation) GetPolling() *Polling
- func (*FeatureCacheInvalidation) ProtoMessage()
- func (x *FeatureCacheInvalidation) ProtoReflect() protoreflect.Message
- func (x *FeatureCacheInvalidation) Reset()
- func (x *FeatureCacheInvalidation) String() string
- type FlagNotFound
- func (*FlagNotFound) Descriptor() ([]byte, []int)deprecated
- func (x *FlagNotFound) GetErrorCode() string
- func (x *FlagNotFound) GetErrorDetails() string
- func (x *FlagNotFound) GetKey() string
- func (*FlagNotFound) ProtoMessage()
- func (x *FlagNotFound) ProtoReflect() protoreflect.Message
- func (x *FlagNotFound) Reset()
- func (x *FlagNotFound) String() string
- type GeneralErrorResponse
- func (*GeneralErrorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GeneralErrorResponse) GetErrorDetails() string
- func (*GeneralErrorResponse) ProtoMessage()
- func (x *GeneralErrorResponse) ProtoReflect() protoreflect.Message
- func (x *GeneralErrorResponse) Reset()
- func (x *GeneralErrorResponse) String() string
- type GetConfigurationRequest
- func (*GetConfigurationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetConfigurationRequest) GetIfNoneMatch() string
- func (*GetConfigurationRequest) ProtoMessage()
- func (x *GetConfigurationRequest) ProtoReflect() protoreflect.Message
- func (x *GetConfigurationRequest) Reset()
- func (x *GetConfigurationRequest) String() string
- type GetConfigurationResponse
- func (*GetConfigurationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetConfigurationResponse) GetConfiguration() *Configuration
- func (x *GetConfigurationResponse) GetETag() string
- func (*GetConfigurationResponse) ProtoMessage()
- func (x *GetConfigurationResponse) ProtoReflect() protoreflect.Message
- func (x *GetConfigurationResponse) Reset()
- func (x *GetConfigurationResponse) String() string
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetBooleanValue() bool
- func (x *Metadata) GetNumberValue() float64
- func (x *Metadata) GetStringValue() string
- func (m *Metadata) GetType() isMetadata_Type
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type Metadata_BooleanValue
- type Metadata_NumberValue
- type Metadata_StringValue
- type OFREPServiceClient
- type OFREPServiceServer
- type Polling
- type UnimplementedOFREPServiceServer
- func (UnimplementedOFREPServiceServer) EvaluateFlag(context.Context, *EvaluateFlagRequest) (*EvaluateFlagResponse, error)
- func (UnimplementedOFREPServiceServer) EvaluateFlagsBulk(context.Context, *EvaluateFlagsBulkRequest) (*EvaluateFlagsBulkResponse, error)
- func (UnimplementedOFREPServiceServer) GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error)
- type UnsafeOFREPServiceServer
Constants ¶
const ( OFREPService_GetConfiguration_FullMethodName = "/ofrep.v1.OFREPService/GetConfiguration" OFREPService_EvaluateFlag_FullMethodName = "/ofrep.v1.OFREPService/EvaluateFlag" OFREPService_EvaluateFlagsBulk_FullMethodName = "/ofrep.v1.OFREPService/EvaluateFlagsBulk" )
Variables ¶
var File_docs_schema_ofrep_v1_schema_proto protoreflect.FileDescriptor
var OFREPService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ofrep.v1.OFREPService", HandlerType: (*OFREPServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetConfiguration", Handler: _OFREPService_GetConfiguration_Handler, }, { MethodName: "EvaluateFlag", Handler: _OFREPService_EvaluateFlag_Handler, }, { MethodName: "EvaluateFlagsBulk", Handler: _OFREPService_EvaluateFlagsBulk_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "docs/schema/ofrep/v1/schema.proto", }
OFREPService_ServiceDesc is the grpc.ServiceDesc for OFREPService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOFREPServiceHandler ¶
func RegisterOFREPServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterOFREPServiceHandler registers the http handlers for service OFREPService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterOFREPServiceHandlerClient ¶
func RegisterOFREPServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OFREPServiceClient) error
RegisterOFREPServiceHandlerClient registers the http handlers for service OFREPService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OFREPServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OFREPServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OFREPServiceClient" to call the correct interceptors.
func RegisterOFREPServiceHandlerFromEndpoint ¶
func RegisterOFREPServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterOFREPServiceHandlerFromEndpoint is same as RegisterOFREPServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterOFREPServiceHandlerServer ¶
func RegisterOFREPServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OFREPServiceServer) error
RegisterOFREPServiceHandlerServer registers the http handlers for service OFREPService to "mux". UnaryRPC :call OFREPServiceServer 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 RegisterOFREPServiceHandlerFromEndpoint instead.
func RegisterOFREPServiceServer ¶
func RegisterOFREPServiceServer(s grpc.ServiceRegistrar, srv OFREPServiceServer)
Types ¶
type Capability ¶
type Capability struct { CacheInvalidation *FeatureCacheInvalidation `protobuf:"bytes,1,opt,name=cache_invalidation,json=cacheInvalidation,proto3" json:"cache_invalidation,omitempty"` // contains filtered or unexported fields }
func (*Capability) Descriptor
deprecated
func (*Capability) Descriptor() ([]byte, []int)
Deprecated: Use Capability.ProtoReflect.Descriptor instead.
func (*Capability) GetCacheInvalidation ¶
func (x *Capability) GetCacheInvalidation() *FeatureCacheInvalidation
func (*Capability) ProtoMessage ¶
func (*Capability) ProtoMessage()
func (*Capability) ProtoReflect ¶
func (x *Capability) ProtoReflect() protoreflect.Message
func (*Capability) Reset ¶
func (x *Capability) Reset()
func (*Capability) String ¶
func (x *Capability) String() string
type Configuration ¶
type Configuration struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Capabilities *Capability `protobuf:"bytes,2,opt,name=capabilities,proto3" json:"capabilities,omitempty"` // contains filtered or unexported fields }
func (*Configuration) Descriptor
deprecated
func (*Configuration) Descriptor() ([]byte, []int)
Deprecated: Use Configuration.ProtoReflect.Descriptor instead.
func (*Configuration) GetCapabilities ¶
func (x *Configuration) GetCapabilities() *Capability
func (*Configuration) GetName ¶
func (x *Configuration) GetName() string
func (*Configuration) ProtoMessage ¶
func (*Configuration) ProtoMessage()
func (*Configuration) ProtoReflect ¶
func (x *Configuration) ProtoReflect() protoreflect.Message
func (*Configuration) Reset ¶
func (x *Configuration) Reset()
func (*Configuration) String ¶
func (x *Configuration) String() string
type EvaluateFlagRequest ¶
type EvaluateFlagRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Context *EvaluationContext `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"` // contains filtered or unexported fields }
func (*EvaluateFlagRequest) Descriptor
deprecated
func (*EvaluateFlagRequest) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateFlagRequest.ProtoReflect.Descriptor instead.
func (*EvaluateFlagRequest) GetContext ¶
func (x *EvaluateFlagRequest) GetContext() *EvaluationContext
func (*EvaluateFlagRequest) GetKey ¶
func (x *EvaluateFlagRequest) GetKey() string
func (*EvaluateFlagRequest) ProtoMessage ¶
func (*EvaluateFlagRequest) ProtoMessage()
func (*EvaluateFlagRequest) ProtoReflect ¶
func (x *EvaluateFlagRequest) ProtoReflect() protoreflect.Message
func (*EvaluateFlagRequest) Reset ¶
func (x *EvaluateFlagRequest) Reset()
func (*EvaluateFlagRequest) String ¶
func (x *EvaluateFlagRequest) String() string
type EvaluateFlagResponse ¶
type EvaluateFlagResponse struct { // Types that are assignable to Result: // // *EvaluateFlagResponse_Success // *EvaluateFlagResponse_Failure Result isEvaluateFlagResponse_Result `protobuf_oneof:"result"` // contains filtered or unexported fields }
func (*EvaluateFlagResponse) Descriptor
deprecated
func (*EvaluateFlagResponse) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateFlagResponse.ProtoReflect.Descriptor instead.
func (*EvaluateFlagResponse) GetFailure ¶
func (x *EvaluateFlagResponse) GetFailure() *EvaluationFailure
func (*EvaluateFlagResponse) GetResult ¶
func (m *EvaluateFlagResponse) GetResult() isEvaluateFlagResponse_Result
func (*EvaluateFlagResponse) GetSuccess ¶
func (x *EvaluateFlagResponse) GetSuccess() *EvaluationSuccess
func (*EvaluateFlagResponse) ProtoMessage ¶
func (*EvaluateFlagResponse) ProtoMessage()
func (*EvaluateFlagResponse) ProtoReflect ¶
func (x *EvaluateFlagResponse) ProtoReflect() protoreflect.Message
func (*EvaluateFlagResponse) Reset ¶
func (x *EvaluateFlagResponse) Reset()
func (*EvaluateFlagResponse) String ¶
func (x *EvaluateFlagResponse) String() string
type EvaluateFlagResponse_Failure ¶
type EvaluateFlagResponse_Failure struct {
Failure *EvaluationFailure `protobuf:"bytes,2,opt,name=failure,proto3,oneof"`
}
type EvaluateFlagResponse_Success ¶
type EvaluateFlagResponse_Success struct {
Success *EvaluationSuccess `protobuf:"bytes,1,opt,name=success,proto3,oneof"`
}
type EvaluateFlagsBulkRequest ¶
type EvaluateFlagsBulkRequest struct { Context *EvaluationContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // contains filtered or unexported fields }
func (*EvaluateFlagsBulkRequest) Descriptor
deprecated
func (*EvaluateFlagsBulkRequest) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateFlagsBulkRequest.ProtoReflect.Descriptor instead.
func (*EvaluateFlagsBulkRequest) GetContext ¶
func (x *EvaluateFlagsBulkRequest) GetContext() *EvaluationContext
func (*EvaluateFlagsBulkRequest) ProtoMessage ¶
func (*EvaluateFlagsBulkRequest) ProtoMessage()
func (*EvaluateFlagsBulkRequest) ProtoReflect ¶
func (x *EvaluateFlagsBulkRequest) ProtoReflect() protoreflect.Message
func (*EvaluateFlagsBulkRequest) Reset ¶
func (x *EvaluateFlagsBulkRequest) Reset()
func (*EvaluateFlagsBulkRequest) String ¶
func (x *EvaluateFlagsBulkRequest) String() string
type EvaluateFlagsBulkResponse ¶
type EvaluateFlagsBulkResponse struct { Flags []*EvaluationResult `protobuf:"bytes,1,rep,name=flags,proto3" json:"flags,omitempty"` ETag string `protobuf:"bytes,2,opt,name=e_tag,json=eTag,proto3" json:"e_tag,omitempty"` // contains filtered or unexported fields }
func (*EvaluateFlagsBulkResponse) Descriptor
deprecated
func (*EvaluateFlagsBulkResponse) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateFlagsBulkResponse.ProtoReflect.Descriptor instead.
func (*EvaluateFlagsBulkResponse) GetETag ¶
func (x *EvaluateFlagsBulkResponse) GetETag() string
func (*EvaluateFlagsBulkResponse) GetFlags ¶
func (x *EvaluateFlagsBulkResponse) GetFlags() []*EvaluationResult
func (*EvaluateFlagsBulkResponse) ProtoMessage ¶
func (*EvaluateFlagsBulkResponse) ProtoMessage()
func (*EvaluateFlagsBulkResponse) ProtoReflect ¶
func (x *EvaluateFlagsBulkResponse) ProtoReflect() protoreflect.Message
func (*EvaluateFlagsBulkResponse) Reset ¶
func (x *EvaluateFlagsBulkResponse) Reset()
func (*EvaluateFlagsBulkResponse) String ¶
func (x *EvaluateFlagsBulkResponse) String() string
type EvaluationContext ¶
type EvaluationContext struct { Properties *structpb.Struct `protobuf:"bytes,1,opt,name=properties,proto3" json:"properties,omitempty"` // contains filtered or unexported fields }
func (*EvaluationContext) Descriptor
deprecated
func (*EvaluationContext) Descriptor() ([]byte, []int)
Deprecated: Use EvaluationContext.ProtoReflect.Descriptor instead.
func (*EvaluationContext) GetProperties ¶
func (x *EvaluationContext) GetProperties() *structpb.Struct
func (*EvaluationContext) ProtoMessage ¶
func (*EvaluationContext) ProtoMessage()
func (*EvaluationContext) ProtoReflect ¶
func (x *EvaluationContext) ProtoReflect() protoreflect.Message
func (*EvaluationContext) Reset ¶
func (x *EvaluationContext) Reset()
func (*EvaluationContext) String ¶
func (x *EvaluationContext) String() string
type EvaluationFailure ¶
type EvaluationFailure struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` ErrorCode string `protobuf:"bytes,2,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` ErrorDetails string `protobuf:"bytes,3,opt,name=error_details,json=errorDetails,proto3" json:"error_details,omitempty"` // contains filtered or unexported fields }
func (*EvaluationFailure) Descriptor
deprecated
func (*EvaluationFailure) Descriptor() ([]byte, []int)
Deprecated: Use EvaluationFailure.ProtoReflect.Descriptor instead.
func (*EvaluationFailure) GetErrorCode ¶
func (x *EvaluationFailure) GetErrorCode() string
func (*EvaluationFailure) GetErrorDetails ¶
func (x *EvaluationFailure) GetErrorDetails() string
func (*EvaluationFailure) GetKey ¶
func (x *EvaluationFailure) GetKey() string
func (*EvaluationFailure) ProtoMessage ¶
func (*EvaluationFailure) ProtoMessage()
func (*EvaluationFailure) ProtoReflect ¶
func (x *EvaluationFailure) ProtoReflect() protoreflect.Message
func (*EvaluationFailure) Reset ¶
func (x *EvaluationFailure) Reset()
func (*EvaluationFailure) String ¶
func (x *EvaluationFailure) String() string
type EvaluationResult ¶
type EvaluationResult struct { // Types that are assignable to Result: // // *EvaluationResult_Success // *EvaluationResult_Failure Result isEvaluationResult_Result `protobuf_oneof:"result"` // contains filtered or unexported fields }
func (*EvaluationResult) Descriptor
deprecated
func (*EvaluationResult) Descriptor() ([]byte, []int)
Deprecated: Use EvaluationResult.ProtoReflect.Descriptor instead.
func (*EvaluationResult) GetFailure ¶
func (x *EvaluationResult) GetFailure() *EvaluationFailure
func (*EvaluationResult) GetResult ¶
func (m *EvaluationResult) GetResult() isEvaluationResult_Result
func (*EvaluationResult) GetSuccess ¶
func (x *EvaluationResult) GetSuccess() *EvaluationSuccess
func (*EvaluationResult) ProtoMessage ¶
func (*EvaluationResult) ProtoMessage()
func (*EvaluationResult) ProtoReflect ¶
func (x *EvaluationResult) ProtoReflect() protoreflect.Message
func (*EvaluationResult) Reset ¶
func (x *EvaluationResult) Reset()
func (*EvaluationResult) String ¶
func (x *EvaluationResult) String() string
type EvaluationResult_Failure ¶
type EvaluationResult_Failure struct {
Failure *EvaluationFailure `protobuf:"bytes,2,opt,name=failure,proto3,oneof"`
}
type EvaluationResult_Success ¶
type EvaluationResult_Success struct {
Success *EvaluationSuccess `protobuf:"bytes,1,opt,name=success,proto3,oneof"`
}
type EvaluationSuccess ¶
type EvaluationSuccess struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` Variant string `protobuf:"bytes,3,opt,name=variant,proto3" json:"variant,omitempty"` Metadata map[string]*Metadata `` /* 157-byte string literal not displayed */ // Types that are assignable to Value: // // *EvaluationSuccess_BoolValue // *EvaluationSuccess_StringValue // *EvaluationSuccess_IntegerValue // *EvaluationSuccess_DoubleValue // *EvaluationSuccess_ObjectValue Value isEvaluationSuccess_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*EvaluationSuccess) Descriptor
deprecated
func (*EvaluationSuccess) Descriptor() ([]byte, []int)
Deprecated: Use EvaluationSuccess.ProtoReflect.Descriptor instead.
func (*EvaluationSuccess) GetBoolValue ¶
func (x *EvaluationSuccess) GetBoolValue() bool
func (*EvaluationSuccess) GetDoubleValue ¶
func (x *EvaluationSuccess) GetDoubleValue() float64
func (*EvaluationSuccess) GetIntegerValue ¶
func (x *EvaluationSuccess) GetIntegerValue() int64
func (*EvaluationSuccess) GetKey ¶
func (x *EvaluationSuccess) GetKey() string
func (*EvaluationSuccess) GetMetadata ¶
func (x *EvaluationSuccess) GetMetadata() map[string]*Metadata
func (*EvaluationSuccess) GetObjectValue ¶
func (x *EvaluationSuccess) GetObjectValue() *structpb.Struct
func (*EvaluationSuccess) GetReason ¶
func (x *EvaluationSuccess) GetReason() string
func (*EvaluationSuccess) GetStringValue ¶
func (x *EvaluationSuccess) GetStringValue() string
func (*EvaluationSuccess) GetValue ¶
func (m *EvaluationSuccess) GetValue() isEvaluationSuccess_Value
func (*EvaluationSuccess) GetVariant ¶
func (x *EvaluationSuccess) GetVariant() string
func (*EvaluationSuccess) ProtoMessage ¶
func (*EvaluationSuccess) ProtoMessage()
func (*EvaluationSuccess) ProtoReflect ¶
func (x *EvaluationSuccess) ProtoReflect() protoreflect.Message
func (*EvaluationSuccess) Reset ¶
func (x *EvaluationSuccess) Reset()
func (*EvaluationSuccess) String ¶
func (x *EvaluationSuccess) String() string
type EvaluationSuccess_BoolValue ¶
type EvaluationSuccess_BoolValue struct {
BoolValue bool `protobuf:"varint,5,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
type EvaluationSuccess_DoubleValue ¶
type EvaluationSuccess_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,8,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type EvaluationSuccess_IntegerValue ¶
type EvaluationSuccess_IntegerValue struct {
IntegerValue int64 `protobuf:"varint,7,opt,name=integer_value,json=integerValue,proto3,oneof"`
}
type EvaluationSuccess_StringValue ¶
type EvaluationSuccess_StringValue struct {
StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type FeatureCacheInvalidation ¶
type FeatureCacheInvalidation struct { Polling *Polling `protobuf:"bytes,1,opt,name=polling,proto3" json:"polling,omitempty"` // contains filtered or unexported fields }
func (*FeatureCacheInvalidation) Descriptor
deprecated
func (*FeatureCacheInvalidation) Descriptor() ([]byte, []int)
Deprecated: Use FeatureCacheInvalidation.ProtoReflect.Descriptor instead.
func (*FeatureCacheInvalidation) GetPolling ¶
func (x *FeatureCacheInvalidation) GetPolling() *Polling
func (*FeatureCacheInvalidation) ProtoMessage ¶
func (*FeatureCacheInvalidation) ProtoMessage()
func (*FeatureCacheInvalidation) ProtoReflect ¶
func (x *FeatureCacheInvalidation) ProtoReflect() protoreflect.Message
func (*FeatureCacheInvalidation) Reset ¶
func (x *FeatureCacheInvalidation) Reset()
func (*FeatureCacheInvalidation) String ¶
func (x *FeatureCacheInvalidation) String() string
type FlagNotFound ¶
type FlagNotFound struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` ErrorCode string `protobuf:"bytes,2,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` ErrorDetails string `protobuf:"bytes,3,opt,name=error_details,json=errorDetails,proto3" json:"error_details,omitempty"` // contains filtered or unexported fields }
func (*FlagNotFound) Descriptor
deprecated
func (*FlagNotFound) Descriptor() ([]byte, []int)
Deprecated: Use FlagNotFound.ProtoReflect.Descriptor instead.
func (*FlagNotFound) GetErrorCode ¶
func (x *FlagNotFound) GetErrorCode() string
func (*FlagNotFound) GetErrorDetails ¶
func (x *FlagNotFound) GetErrorDetails() string
func (*FlagNotFound) GetKey ¶
func (x *FlagNotFound) GetKey() string
func (*FlagNotFound) ProtoMessage ¶
func (*FlagNotFound) ProtoMessage()
func (*FlagNotFound) ProtoReflect ¶
func (x *FlagNotFound) ProtoReflect() protoreflect.Message
func (*FlagNotFound) Reset ¶
func (x *FlagNotFound) Reset()
func (*FlagNotFound) String ¶
func (x *FlagNotFound) String() string
type GeneralErrorResponse ¶
type GeneralErrorResponse struct { ErrorDetails string `protobuf:"bytes,1,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) 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 GetConfigurationRequest ¶
type GetConfigurationRequest struct { IfNoneMatch string `protobuf:"bytes,1,opt,name=if_none_match,json=ifNoneMatch,proto3" json:"if_none_match,omitempty"` // contains filtered or unexported fields }
func (*GetConfigurationRequest) Descriptor
deprecated
func (*GetConfigurationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigurationRequest.ProtoReflect.Descriptor instead.
func (*GetConfigurationRequest) GetIfNoneMatch ¶
func (x *GetConfigurationRequest) GetIfNoneMatch() string
func (*GetConfigurationRequest) ProtoMessage ¶
func (*GetConfigurationRequest) ProtoMessage()
func (*GetConfigurationRequest) ProtoReflect ¶
func (x *GetConfigurationRequest) ProtoReflect() protoreflect.Message
func (*GetConfigurationRequest) Reset ¶
func (x *GetConfigurationRequest) Reset()
func (*GetConfigurationRequest) String ¶
func (x *GetConfigurationRequest) String() string
type GetConfigurationResponse ¶
type GetConfigurationResponse struct { Configuration *Configuration `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"` ETag string `protobuf:"bytes,2,opt,name=e_tag,json=eTag,proto3" json:"e_tag,omitempty"` // contains filtered or unexported fields }
func (*GetConfigurationResponse) Descriptor
deprecated
func (*GetConfigurationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigurationResponse.ProtoReflect.Descriptor instead.
func (*GetConfigurationResponse) GetConfiguration ¶
func (x *GetConfigurationResponse) GetConfiguration() *Configuration
func (*GetConfigurationResponse) GetETag ¶
func (x *GetConfigurationResponse) GetETag() string
func (*GetConfigurationResponse) ProtoMessage ¶
func (*GetConfigurationResponse) ProtoMessage()
func (*GetConfigurationResponse) ProtoReflect ¶
func (x *GetConfigurationResponse) ProtoReflect() protoreflect.Message
func (*GetConfigurationResponse) Reset ¶
func (x *GetConfigurationResponse) Reset()
func (*GetConfigurationResponse) String ¶
func (x *GetConfigurationResponse) String() string
type Metadata ¶
type Metadata struct { // Types that are assignable to Type: // // *Metadata_BooleanValue // *Metadata_StringValue // *Metadata_NumberValue Type isMetadata_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetBooleanValue ¶
func (*Metadata) GetNumberValue ¶
func (*Metadata) GetStringValue ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type Metadata_BooleanValue ¶
type Metadata_BooleanValue struct {
BooleanValue bool `protobuf:"varint,1,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
}
type Metadata_NumberValue ¶
type Metadata_NumberValue struct {
NumberValue float64 `protobuf:"fixed64,3,opt,name=number_value,json=numberValue,proto3,oneof"`
}
type Metadata_StringValue ¶
type Metadata_StringValue struct {
StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type OFREPServiceClient ¶
type OFREPServiceClient interface { GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error) EvaluateFlag(ctx context.Context, in *EvaluateFlagRequest, opts ...grpc.CallOption) (*EvaluateFlagResponse, error) EvaluateFlagsBulk(ctx context.Context, in *EvaluateFlagsBulkRequest, opts ...grpc.CallOption) (*EvaluateFlagsBulkResponse, error) }
OFREPServiceClient is the client API for OFREPService 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 NewOFREPServiceClient ¶
func NewOFREPServiceClient(cc grpc.ClientConnInterface) OFREPServiceClient
type OFREPServiceServer ¶
type OFREPServiceServer interface { GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error) EvaluateFlag(context.Context, *EvaluateFlagRequest) (*EvaluateFlagResponse, error) EvaluateFlagsBulk(context.Context, *EvaluateFlagsBulkRequest) (*EvaluateFlagsBulkResponse, error) }
OFREPServiceServer is the server API for OFREPService service. All implementations should embed UnimplementedOFREPServiceServer for forward compatibility
type Polling ¶
type Polling struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` MinPollingInterval float64 `protobuf:"fixed64,2,opt,name=min_polling_interval,json=minPollingInterval,proto3" json:"min_polling_interval,omitempty"` // contains filtered or unexported fields }
func (*Polling) Descriptor
deprecated
func (*Polling) GetEnabled ¶
func (*Polling) GetMinPollingInterval ¶
func (*Polling) ProtoMessage ¶
func (*Polling) ProtoMessage()
func (*Polling) ProtoReflect ¶
func (x *Polling) ProtoReflect() protoreflect.Message
type UnimplementedOFREPServiceServer ¶
type UnimplementedOFREPServiceServer struct { }
UnimplementedOFREPServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedOFREPServiceServer) EvaluateFlag ¶
func (UnimplementedOFREPServiceServer) EvaluateFlag(context.Context, *EvaluateFlagRequest) (*EvaluateFlagResponse, error)
func (UnimplementedOFREPServiceServer) EvaluateFlagsBulk ¶
func (UnimplementedOFREPServiceServer) EvaluateFlagsBulk(context.Context, *EvaluateFlagsBulkRequest) (*EvaluateFlagsBulkResponse, error)
func (UnimplementedOFREPServiceServer) GetConfiguration ¶
func (UnimplementedOFREPServiceServer) GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error)
type UnsafeOFREPServiceServer ¶
type UnsafeOFREPServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOFREPServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OFREPServiceServer will result in compilation errors.