Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSidecarServiceServer(s grpc.ServiceRegistrar, srv SidecarServiceServer)
- type AccessDeniedReason
- func (AccessDeniedReason) Descriptor() protoreflect.EnumDescriptor
- func (x AccessDeniedReason) Enum() *AccessDeniedReason
- func (AccessDeniedReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccessDeniedReason) Number() protoreflect.EnumNumber
- func (x AccessDeniedReason) String() string
- func (AccessDeniedReason) Type() protoreflect.EnumType
- type ApiConfig
- func (*ApiConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ApiConfig) GetApiKey() string
- func (x *ApiConfig) GetApiUrl() string
- func (x *ApiConfig) GetEdgeApiUrl() string
- func (x *ApiConfig) GetEdgeEnabled() bool
- func (*ApiConfig) ProtoMessage()
- func (x *ApiConfig) ProtoReflect() protoreflect.Message
- func (x *ApiConfig) Reset()
- func (x *ApiConfig) String() string
- type BooleanEntitlement
- func (*BooleanEntitlement) Descriptor() ([]byte, []int)deprecated
- func (x *BooleanEntitlement) GetFeature() *EntitlementFeature
- func (*BooleanEntitlement) ProtoMessage()
- func (x *BooleanEntitlement) ProtoReflect() protoreflect.Message
- func (x *BooleanEntitlement) Reset()
- func (x *BooleanEntitlement) String() string
- type BooleanEntitlementFallback
- func (*BooleanEntitlementFallback) Descriptor() ([]byte, []int)deprecated
- func (x *BooleanEntitlementFallback) GetHasAccess() bool
- func (*BooleanEntitlementFallback) ProtoMessage()
- func (x *BooleanEntitlementFallback) ProtoReflect() protoreflect.Message
- func (x *BooleanEntitlementFallback) Reset()
- func (x *BooleanEntitlementFallback) String() string
- type BooleanEntitlementOptions
- func (*BooleanEntitlementOptions) Descriptor() ([]byte, []int)deprecated
- func (x *BooleanEntitlementOptions) GetFallback() *BooleanEntitlementFallback
- func (*BooleanEntitlementOptions) ProtoMessage()
- func (x *BooleanEntitlementOptions) ProtoReflect() protoreflect.Message
- func (x *BooleanEntitlementOptions) Reset()
- func (x *BooleanEntitlementOptions) String() string
- type Client
- type Entitlement
- func (*Entitlement) Descriptor() ([]byte, []int)deprecated
- func (x *Entitlement) GetBoolean() *BooleanEntitlement
- func (m *Entitlement) GetEntitlement() isEntitlement_Entitlement
- func (x *Entitlement) GetMetered() *MeteredEntitlement
- func (x *Entitlement) GetNumeric() *NumericEntitlement
- func (*Entitlement) ProtoMessage()
- func (x *Entitlement) ProtoReflect() protoreflect.Message
- func (x *Entitlement) Reset()
- func (x *Entitlement) String() string
- type EntitlementFallback
- func (*EntitlementFallback) Descriptor() ([]byte, []int)deprecated
- func (x *EntitlementFallback) GetBoolean() *BooleanEntitlementFallback
- func (m *EntitlementFallback) GetFallback() isEntitlementFallback_Fallback
- func (x *EntitlementFallback) GetMetered() *MeteredEntitlementFallback
- func (x *EntitlementFallback) GetNumeric() *NumericEntitlementFallback
- func (*EntitlementFallback) ProtoMessage()
- func (x *EntitlementFallback) ProtoReflect() protoreflect.Message
- func (x *EntitlementFallback) Reset()
- func (x *EntitlementFallback) String() string
- type EntitlementFallback_Boolean
- type EntitlementFallback_Metered
- type EntitlementFallback_Numeric
- type EntitlementFeature
- func (*EntitlementFeature) Descriptor() ([]byte, []int)deprecated
- func (x *EntitlementFeature) GetFeatureType() FeatureType
- func (x *EntitlementFeature) GetId() string
- func (x *EntitlementFeature) GetIsMetered() bool
- func (x *EntitlementFeature) GetMeterType() MeterType
- func (x *EntitlementFeature) GetUnits() string
- func (x *EntitlementFeature) GetUnitsPlural() string
- func (*EntitlementFeature) ProtoMessage()
- func (x *EntitlementFeature) ProtoReflect() protoreflect.Message
- func (x *EntitlementFeature) Reset()
- func (x *EntitlementFeature) String() string
- type EntitlementResetPeriod
- func (EntitlementResetPeriod) Descriptor() protoreflect.EnumDescriptor
- func (x EntitlementResetPeriod) Enum() *EntitlementResetPeriod
- func (EntitlementResetPeriod) EnumDescriptor() ([]byte, []int)deprecated
- func (x EntitlementResetPeriod) Number() protoreflect.EnumNumber
- func (x EntitlementResetPeriod) String() string
- func (EntitlementResetPeriod) Type() protoreflect.EnumType
- type Entitlement_Boolean
- type Entitlement_Metered
- type Entitlement_Numeric
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetCustomerId() string
- func (x *Event) GetDimensions() map[string]*EventDimensionValue
- func (x *Event) GetEventName() string
- func (x *Event) GetIdempotencyKey() string
- func (x *Event) GetResourceId() string
- func (x *Event) GetTimestamp() *timestamppb.Timestamp
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventDimensionValue
- func (*EventDimensionValue) Descriptor() ([]byte, []int)deprecated
- func (x *EventDimensionValue) GetBooleanValue() bool
- func (x *EventDimensionValue) GetNumberValue() float64
- func (x *EventDimensionValue) GetStringValue() string
- func (m *EventDimensionValue) GetValue() isEventDimensionValue_Value
- func (*EventDimensionValue) ProtoMessage()
- func (x *EventDimensionValue) ProtoReflect() protoreflect.Message
- func (x *EventDimensionValue) Reset()
- func (x *EventDimensionValue) String() string
- type EventDimensionValue_BooleanValue
- type EventDimensionValue_NumberValue
- type EventDimensionValue_StringValue
- type FeatureType
- func (FeatureType) Descriptor() protoreflect.EnumDescriptor
- func (x FeatureType) Enum() *FeatureType
- func (FeatureType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FeatureType) Number() protoreflect.EnumNumber
- func (x FeatureType) String() string
- func (FeatureType) Type() protoreflect.EnumType
- type GetBooleanEntitlementRequest
- func (*GetBooleanEntitlementRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBooleanEntitlementRequest) GetCustomerId() string
- func (x *GetBooleanEntitlementRequest) GetFeatureId() string
- func (x *GetBooleanEntitlementRequest) GetOptions() *BooleanEntitlementOptions
- func (x *GetBooleanEntitlementRequest) GetResourceId() string
- func (*GetBooleanEntitlementRequest) ProtoMessage()
- func (x *GetBooleanEntitlementRequest) ProtoReflect() protoreflect.Message
- func (x *GetBooleanEntitlementRequest) Reset()
- func (x *GetBooleanEntitlementRequest) String() string
- type GetBooleanEntitlementResponse
- func (*GetBooleanEntitlementResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBooleanEntitlementResponse) GetAccessDeniedReason() AccessDeniedReason
- func (x *GetBooleanEntitlementResponse) GetEntitlement() *BooleanEntitlement
- func (x *GetBooleanEntitlementResponse) GetHasAccess() bool
- func (x *GetBooleanEntitlementResponse) GetIsFallback() bool
- func (*GetBooleanEntitlementResponse) ProtoMessage()
- func (x *GetBooleanEntitlementResponse) ProtoReflect() protoreflect.Message
- func (x *GetBooleanEntitlementResponse) Reset()
- func (x *GetBooleanEntitlementResponse) String() string
- type GetEntitlementsRequest
- func (*GetEntitlementsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEntitlementsRequest) GetCustomerId() string
- func (x *GetEntitlementsRequest) GetResourceId() string
- func (*GetEntitlementsRequest) ProtoMessage()
- func (x *GetEntitlementsRequest) ProtoReflect() protoreflect.Message
- func (x *GetEntitlementsRequest) Reset()
- func (x *GetEntitlementsRequest) String() string
- type GetEntitlementsResponse
- func (*GetEntitlementsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetEntitlementsResponse) GetEntitlements() []*Entitlement
- func (*GetEntitlementsResponse) ProtoMessage()
- func (x *GetEntitlementsResponse) ProtoReflect() protoreflect.Message
- func (x *GetEntitlementsResponse) Reset()
- func (x *GetEntitlementsResponse) String() string
- type GetMeteredEntitlementRequest
- func (*GetMeteredEntitlementRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMeteredEntitlementRequest) GetCustomerId() string
- func (x *GetMeteredEntitlementRequest) GetFeatureId() string
- func (x *GetMeteredEntitlementRequest) GetOptions() *MeteredEntitlementOptions
- func (x *GetMeteredEntitlementRequest) GetResourceId() string
- func (*GetMeteredEntitlementRequest) ProtoMessage()
- func (x *GetMeteredEntitlementRequest) ProtoReflect() protoreflect.Message
- func (x *GetMeteredEntitlementRequest) Reset()
- func (x *GetMeteredEntitlementRequest) String() string
- type GetMeteredEntitlementResponse
- func (*GetMeteredEntitlementResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMeteredEntitlementResponse) GetAccessDeniedReason() AccessDeniedReason
- func (x *GetMeteredEntitlementResponse) GetEntitlement() *MeteredEntitlement
- func (x *GetMeteredEntitlementResponse) GetHasAccess() bool
- func (x *GetMeteredEntitlementResponse) GetIsFallback() bool
- func (x *GetMeteredEntitlementResponse) GetRequestedUsage() float64
- func (*GetMeteredEntitlementResponse) ProtoMessage()
- func (x *GetMeteredEntitlementResponse) ProtoReflect() protoreflect.Message
- func (x *GetMeteredEntitlementResponse) Reset()
- func (x *GetMeteredEntitlementResponse) String() string
- type GetNumericEntitlementRequest
- func (*GetNumericEntitlementRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNumericEntitlementRequest) GetCustomerId() string
- func (x *GetNumericEntitlementRequest) GetFeatureId() string
- func (x *GetNumericEntitlementRequest) GetOptions() *NumericEntitlementOptions
- func (x *GetNumericEntitlementRequest) GetResourceId() string
- func (*GetNumericEntitlementRequest) ProtoMessage()
- func (x *GetNumericEntitlementRequest) ProtoReflect() protoreflect.Message
- func (x *GetNumericEntitlementRequest) Reset()
- func (x *GetNumericEntitlementRequest) String() string
- type GetNumericEntitlementResponse
- func (*GetNumericEntitlementResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNumericEntitlementResponse) GetAccessDeniedReason() AccessDeniedReason
- func (x *GetNumericEntitlementResponse) GetEntitlement() *NumericEntitlement
- func (x *GetNumericEntitlementResponse) GetHasAccess() bool
- func (x *GetNumericEntitlementResponse) GetIsFallback() bool
- func (*GetNumericEntitlementResponse) ProtoMessage()
- func (x *GetNumericEntitlementResponse) ProtoReflect() protoreflect.Message
- func (x *GetNumericEntitlementResponse) Reset()
- func (x *GetNumericEntitlementResponse) String() string
- type LocalSidecarConfig
- func (*LocalSidecarConfig) Descriptor() ([]byte, []int)deprecated
- func (x *LocalSidecarConfig) GetCacheMaxSizeBytes() int64
- func (x *LocalSidecarConfig) GetEntitlementsFallback() map[string]*EntitlementFallback
- func (x *LocalSidecarConfig) GetRedis() *RedisOptions
- func (x *LocalSidecarConfig) GetWsEnabled() bool
- func (x *LocalSidecarConfig) GetWsUrl() string
- func (*LocalSidecarConfig) ProtoMessage()
- func (x *LocalSidecarConfig) ProtoReflect() protoreflect.Message
- func (x *LocalSidecarConfig) Reset()
- func (x *LocalSidecarConfig) String() string
- type MeterType
- type MeteredEntitlement
- func (*MeteredEntitlement) Descriptor() ([]byte, []int)deprecated
- func (x *MeteredEntitlement) GetCurrentUsage() float64
- func (x *MeteredEntitlement) GetFeature() *EntitlementFeature
- func (x *MeteredEntitlement) GetIsUnlimited() bool
- func (x *MeteredEntitlement) GetNextResetDate() *timestamppb.Timestamp
- func (x *MeteredEntitlement) GetResetPeriod() EntitlementResetPeriod
- func (x *MeteredEntitlement) GetUsageLimit() float64
- func (*MeteredEntitlement) ProtoMessage()
- func (x *MeteredEntitlement) ProtoReflect() protoreflect.Message
- func (x *MeteredEntitlement) Reset()
- func (x *MeteredEntitlement) String() string
- type MeteredEntitlementFallback
- func (*MeteredEntitlementFallback) Descriptor() ([]byte, []int)deprecated
- func (x *MeteredEntitlementFallback) GetHasAccess() bool
- func (x *MeteredEntitlementFallback) GetIsUnlimited() bool
- func (x *MeteredEntitlementFallback) GetUsageLimit() float64
- func (*MeteredEntitlementFallback) ProtoMessage()
- func (x *MeteredEntitlementFallback) ProtoReflect() protoreflect.Message
- func (x *MeteredEntitlementFallback) Reset()
- func (x *MeteredEntitlementFallback) String() string
- type MeteredEntitlementOptions
- func (*MeteredEntitlementOptions) Descriptor() ([]byte, []int)deprecated
- func (x *MeteredEntitlementOptions) GetFallback() *MeteredEntitlementFallback
- func (x *MeteredEntitlementOptions) GetRequestedUsage() float64
- func (*MeteredEntitlementOptions) ProtoMessage()
- func (x *MeteredEntitlementOptions) ProtoReflect() protoreflect.Message
- func (x *MeteredEntitlementOptions) Reset()
- func (x *MeteredEntitlementOptions) String() string
- type NumericEntitlement
- func (*NumericEntitlement) Descriptor() ([]byte, []int)deprecated
- func (x *NumericEntitlement) GetFeature() *EntitlementFeature
- func (x *NumericEntitlement) GetIsUnlimited() bool
- func (x *NumericEntitlement) GetValue() int32
- func (*NumericEntitlement) ProtoMessage()
- func (x *NumericEntitlement) ProtoReflect() protoreflect.Message
- func (x *NumericEntitlement) Reset()
- func (x *NumericEntitlement) String() string
- type NumericEntitlementFallback
- func (*NumericEntitlementFallback) Descriptor() ([]byte, []int)deprecated
- func (x *NumericEntitlementFallback) GetHasAccess() bool
- func (x *NumericEntitlementFallback) GetIsUnlimited() bool
- func (x *NumericEntitlementFallback) GetValue() int32
- func (*NumericEntitlementFallback) ProtoMessage()
- func (x *NumericEntitlementFallback) ProtoReflect() protoreflect.Message
- func (x *NumericEntitlementFallback) Reset()
- func (x *NumericEntitlementFallback) String() string
- type NumericEntitlementOptions
- func (*NumericEntitlementOptions) Descriptor() ([]byte, []int)deprecated
- func (x *NumericEntitlementOptions) GetFallback() *NumericEntitlementFallback
- func (*NumericEntitlementOptions) ProtoMessage()
- func (x *NumericEntitlementOptions) ProtoReflect() protoreflect.Message
- func (x *NumericEntitlementOptions) Reset()
- func (x *NumericEntitlementOptions) String() string
- type RedisOptions
- func (*RedisOptions) Descriptor() ([]byte, []int)deprecated
- func (x *RedisOptions) GetDb() int32
- func (x *RedisOptions) GetEnvironmentPrefix() string
- func (x *RedisOptions) GetHost() string
- func (x *RedisOptions) GetPassword() string
- func (x *RedisOptions) GetPort() int32
- func (x *RedisOptions) GetTtl() int32
- func (x *RedisOptions) GetUsername() string
- func (*RedisOptions) ProtoMessage()
- func (x *RedisOptions) ProtoReflect() protoreflect.Message
- func (x *RedisOptions) Reset()
- func (x *RedisOptions) String() string
- type ReloadEntitlementsRequest
- func (*ReloadEntitlementsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReloadEntitlementsRequest) GetCustomerId() string
- func (x *ReloadEntitlementsRequest) GetResourceId() string
- func (*ReloadEntitlementsRequest) ProtoMessage()
- func (x *ReloadEntitlementsRequest) ProtoReflect() protoreflect.Message
- func (x *ReloadEntitlementsRequest) Reset()
- func (x *ReloadEntitlementsRequest) String() string
- type ReloadEntitlementsResponse
- func (*ReloadEntitlementsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReloadEntitlementsResponse) GetEntitledEntityExists() bool
- func (*ReloadEntitlementsResponse) ProtoMessage()
- func (x *ReloadEntitlementsResponse) ProtoReflect() protoreflect.Message
- func (x *ReloadEntitlementsResponse) Reset()
- func (x *ReloadEntitlementsResponse) String() string
- type ReportEventsRequest
- func (*ReportEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReportEventsRequest) GetEvents() []*Event
- func (*ReportEventsRequest) ProtoMessage()
- func (x *ReportEventsRequest) ProtoReflect() protoreflect.Message
- func (x *ReportEventsRequest) Reset()
- func (x *ReportEventsRequest) String() string
- type ReportUsageRequest
- func (*ReportUsageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReportUsageRequest) GetCustomerId() string
- func (x *ReportUsageRequest) GetFeatureId() string
- func (x *ReportUsageRequest) GetResourceId() string
- func (x *ReportUsageRequest) GetUpdateBehavior() UsageUpdateBehavior
- func (x *ReportUsageRequest) GetValue() float64
- func (*ReportUsageRequest) ProtoMessage()
- func (x *ReportUsageRequest) ProtoReflect() protoreflect.Message
- func (x *ReportUsageRequest) Reset()
- func (x *ReportUsageRequest) String() string
- type ReportUsageResponse
- func (*ReportUsageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReportUsageResponse) GetMeasurementId() string
- func (*ReportUsageResponse) ProtoMessage()
- func (x *ReportUsageResponse) ProtoReflect() protoreflect.Message
- func (x *ReportUsageResponse) Reset()
- func (x *ReportUsageResponse) String() string
- type SidecarServiceClient
- type SidecarServiceServer
- type UnimplementedSidecarServiceServer
- func (UnimplementedSidecarServiceServer) GetBooleanEntitlement(context.Context, *GetBooleanEntitlementRequest) (*GetBooleanEntitlementResponse, error)
- func (UnimplementedSidecarServiceServer) GetEntitlements(context.Context, *GetEntitlementsRequest) (*GetEntitlementsResponse, error)
- func (UnimplementedSidecarServiceServer) GetMeteredEntitlement(context.Context, *GetMeteredEntitlementRequest) (*GetMeteredEntitlementResponse, error)
- func (UnimplementedSidecarServiceServer) GetNumericEntitlement(context.Context, *GetNumericEntitlementRequest) (*GetNumericEntitlementResponse, error)
- func (UnimplementedSidecarServiceServer) ReloadEntitlements(context.Context, *ReloadEntitlementsRequest) (*ReloadEntitlementsResponse, error)
- func (UnimplementedSidecarServiceServer) ReportEvents(context.Context, *ReportEventsRequest) (*emptypb.Empty, error)
- func (UnimplementedSidecarServiceServer) ReportUsage(context.Context, *ReportUsageRequest) (*ReportUsageResponse, error)
- type UnsafeSidecarServiceServer
- type UsageUpdateBehavior
- func (UsageUpdateBehavior) Descriptor() protoreflect.EnumDescriptor
- func (x UsageUpdateBehavior) Enum() *UsageUpdateBehavior
- func (UsageUpdateBehavior) EnumDescriptor() ([]byte, []int)deprecated
- func (x UsageUpdateBehavior) Number() protoreflect.EnumNumber
- func (x UsageUpdateBehavior) String() string
- func (UsageUpdateBehavior) Type() protoreflect.EnumType
Constants ¶
const ( SidecarService_GetEntitlements_FullMethodName = "/stigg.sidecar.v1.SidecarService/GetEntitlements" SidecarService_GetBooleanEntitlement_FullMethodName = "/stigg.sidecar.v1.SidecarService/GetBooleanEntitlement" SidecarService_GetNumericEntitlement_FullMethodName = "/stigg.sidecar.v1.SidecarService/GetNumericEntitlement" SidecarService_GetMeteredEntitlement_FullMethodName = "/stigg.sidecar.v1.SidecarService/GetMeteredEntitlement" SidecarService_ReportUsage_FullMethodName = "/stigg.sidecar.v1.SidecarService/ReportUsage" SidecarService_ReportEvents_FullMethodName = "/stigg.sidecar.v1.SidecarService/ReportEvents" SidecarService_ReloadEntitlements_FullMethodName = "/stigg.sidecar.v1.SidecarService/ReloadEntitlements" )
Variables ¶
var ( AccessDeniedReason_name = map[int32]string{ 0: "ACCESS_DENIED_REASON_UNSPECIFIED", 1: "ACCESS_DENIED_REASON_UNKNOWN", 2: "ACCESS_DENIED_REASON_CUSTOMER_IS_ARCHIVED", 3: "ACCESS_DENIED_REASON_CUSTOMER_NOT_FOUND", 4: "ACCESS_DENIED_REASON_CUSTOMER_RESOURCE_NOT_FOUND", 5: "ACCESS_DENIED_REASON_FEATURE_NOT_FOUND", 6: "ACCESS_DENIED_REASON_NO_ACTIVE_SUBSCRIPTION", 7: "ACCESS_DENIED_REASON_NO_FEATURE_ENTITLEMENT_IN_SUBSCRIPTION", 8: "ACCESS_DENIED_REASON_REQUESTED_USAGE_EXCEEDING_LIMIT", } AccessDeniedReason_value = map[string]int32{ "ACCESS_DENIED_REASON_UNSPECIFIED": 0, "ACCESS_DENIED_REASON_UNKNOWN": 1, "ACCESS_DENIED_REASON_CUSTOMER_IS_ARCHIVED": 2, "ACCESS_DENIED_REASON_CUSTOMER_NOT_FOUND": 3, "ACCESS_DENIED_REASON_CUSTOMER_RESOURCE_NOT_FOUND": 4, "ACCESS_DENIED_REASON_FEATURE_NOT_FOUND": 5, "ACCESS_DENIED_REASON_NO_ACTIVE_SUBSCRIPTION": 6, "ACCESS_DENIED_REASON_NO_FEATURE_ENTITLEMENT_IN_SUBSCRIPTION": 7, "ACCESS_DENIED_REASON_REQUESTED_USAGE_EXCEEDING_LIMIT": 8, } )
Enum value maps for AccessDeniedReason.
var ( FeatureType_name = map[int32]string{ 0: "FEATURE_TYPE_UNSPECIFIED", 1: "FEATURE_TYPE_BOOLEAN", 2: "FEATURE_TYPE_NUMBER", } FeatureType_value = map[string]int32{ "FEATURE_TYPE_UNSPECIFIED": 0, "FEATURE_TYPE_BOOLEAN": 1, "FEATURE_TYPE_NUMBER": 2, } )
Enum value maps for FeatureType.
var ( MeterType_name = map[int32]string{ 0: "METER_TYPE_UNSPECIFIED", 1: "METER_TYPE_NONE", 2: "METER_TYPE_FLUCTUATING", 3: "METER_TYPE_INCREMENTAL", } MeterType_value = map[string]int32{ "METER_TYPE_UNSPECIFIED": 0, "METER_TYPE_NONE": 1, "METER_TYPE_FLUCTUATING": 2, "METER_TYPE_INCREMENTAL": 3, } )
Enum value maps for MeterType.
var ( EntitlementResetPeriod_name = map[int32]string{ 0: "ENTITLEMENT_RESET_PERIOD_UNSPECIFIED", 1: "ENTITLEMENT_RESET_PERIOD_DAY", 2: "ENTITLEMENT_RESET_PERIOD_HOUR", 3: "ENTITLEMENT_RESET_PERIOD_MONTH", 4: "ENTITLEMENT_RESET_PERIOD_WEEK", 5: "ENTITLEMENT_RESET_PERIOD_YEAR", } EntitlementResetPeriod_value = map[string]int32{ "ENTITLEMENT_RESET_PERIOD_UNSPECIFIED": 0, "ENTITLEMENT_RESET_PERIOD_DAY": 1, "ENTITLEMENT_RESET_PERIOD_HOUR": 2, "ENTITLEMENT_RESET_PERIOD_MONTH": 3, "ENTITLEMENT_RESET_PERIOD_WEEK": 4, "ENTITLEMENT_RESET_PERIOD_YEAR": 5, } )
Enum value maps for EntitlementResetPeriod.
var ( UsageUpdateBehavior_name = map[int32]string{ 0: "USAGE_UPDATE_BEHAVIOR_UNSPECIFIED", 1: "USAGE_UPDATE_BEHAVIOR_DELTA", 2: "USAGE_UPDATE_BEHAVIOR_SET", } UsageUpdateBehavior_value = map[string]int32{ "USAGE_UPDATE_BEHAVIOR_UNSPECIFIED": 0, "USAGE_UPDATE_BEHAVIOR_DELTA": 1, "USAGE_UPDATE_BEHAVIOR_SET": 2, } )
Enum value maps for UsageUpdateBehavior.
var File_sidecar_proto protoreflect.FileDescriptor
var SidecarService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "stigg.sidecar.v1.SidecarService", HandlerType: (*SidecarServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetEntitlements", Handler: _SidecarService_GetEntitlements_Handler, }, { MethodName: "GetBooleanEntitlement", Handler: _SidecarService_GetBooleanEntitlement_Handler, }, { MethodName: "GetNumericEntitlement", Handler: _SidecarService_GetNumericEntitlement_Handler, }, { MethodName: "GetMeteredEntitlement", Handler: _SidecarService_GetMeteredEntitlement_Handler, }, { MethodName: "ReportUsage", Handler: _SidecarService_ReportUsage_Handler, }, { MethodName: "ReportEvents", Handler: _SidecarService_ReportEvents_Handler, }, { MethodName: "ReloadEntitlements", Handler: _SidecarService_ReloadEntitlements_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sidecar.proto", }
SidecarService_ServiceDesc is the grpc.ServiceDesc for SidecarService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSidecarServiceServer ¶
func RegisterSidecarServiceServer(s grpc.ServiceRegistrar, srv SidecarServiceServer)
Types ¶
type AccessDeniedReason ¶
type AccessDeniedReason int32
const ( AccessDeniedReason_ACCESS_DENIED_REASON_UNSPECIFIED AccessDeniedReason = 0 AccessDeniedReason_ACCESS_DENIED_REASON_UNKNOWN AccessDeniedReason = 1 AccessDeniedReason_ACCESS_DENIED_REASON_CUSTOMER_IS_ARCHIVED AccessDeniedReason = 2 AccessDeniedReason_ACCESS_DENIED_REASON_CUSTOMER_NOT_FOUND AccessDeniedReason = 3 AccessDeniedReason_ACCESS_DENIED_REASON_CUSTOMER_RESOURCE_NOT_FOUND AccessDeniedReason = 4 AccessDeniedReason_ACCESS_DENIED_REASON_FEATURE_NOT_FOUND AccessDeniedReason = 5 AccessDeniedReason_ACCESS_DENIED_REASON_NO_ACTIVE_SUBSCRIPTION AccessDeniedReason = 6 AccessDeniedReason_ACCESS_DENIED_REASON_NO_FEATURE_ENTITLEMENT_IN_SUBSCRIPTION AccessDeniedReason = 7 AccessDeniedReason_ACCESS_DENIED_REASON_REQUESTED_USAGE_EXCEEDING_LIMIT AccessDeniedReason = 8 )
func (AccessDeniedReason) Descriptor ¶
func (AccessDeniedReason) Descriptor() protoreflect.EnumDescriptor
func (AccessDeniedReason) Enum ¶
func (x AccessDeniedReason) Enum() *AccessDeniedReason
func (AccessDeniedReason) EnumDescriptor
deprecated
func (AccessDeniedReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccessDeniedReason.Descriptor instead.
func (AccessDeniedReason) Number ¶
func (x AccessDeniedReason) Number() protoreflect.EnumNumber
func (AccessDeniedReason) String ¶
func (x AccessDeniedReason) String() string
func (AccessDeniedReason) Type ¶
func (AccessDeniedReason) Type() protoreflect.EnumType
type ApiConfig ¶
type ApiConfig struct { ApiKey string `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"` ApiUrl *string `protobuf:"bytes,2,opt,name=api_url,json=apiUrl,proto3,oneof" json:"api_url,omitempty"` EdgeEnabled *bool `protobuf:"varint,3,opt,name=edge_enabled,json=edgeEnabled,proto3,oneof" json:"edge_enabled,omitempty"` EdgeApiUrl *string `protobuf:"bytes,4,opt,name=edge_api_url,json=edgeApiUrl,proto3,oneof" json:"edge_api_url,omitempty"` // contains filtered or unexported fields }
func (*ApiConfig) Descriptor
deprecated
func (*ApiConfig) GetEdgeApiUrl ¶
func (*ApiConfig) GetEdgeEnabled ¶
func (*ApiConfig) ProtoMessage ¶
func (*ApiConfig) ProtoMessage()
func (*ApiConfig) ProtoReflect ¶
func (x *ApiConfig) ProtoReflect() protoreflect.Message
type BooleanEntitlement ¶
type BooleanEntitlement struct { Feature *EntitlementFeature `protobuf:"bytes,4,opt,name=feature,proto3,oneof" json:"feature,omitempty"` // contains filtered or unexported fields }
func (*BooleanEntitlement) Descriptor
deprecated
func (*BooleanEntitlement) Descriptor() ([]byte, []int)
Deprecated: Use BooleanEntitlement.ProtoReflect.Descriptor instead.
func (*BooleanEntitlement) GetFeature ¶
func (x *BooleanEntitlement) GetFeature() *EntitlementFeature
func (*BooleanEntitlement) ProtoMessage ¶
func (*BooleanEntitlement) ProtoMessage()
func (*BooleanEntitlement) ProtoReflect ¶
func (x *BooleanEntitlement) ProtoReflect() protoreflect.Message
func (*BooleanEntitlement) Reset ¶
func (x *BooleanEntitlement) Reset()
func (*BooleanEntitlement) String ¶
func (x *BooleanEntitlement) String() string
type BooleanEntitlementFallback ¶
type BooleanEntitlementFallback struct { HasAccess bool `protobuf:"varint,1,opt,name=has_access,json=hasAccess,proto3" json:"has_access,omitempty"` // contains filtered or unexported fields }
func (*BooleanEntitlementFallback) Descriptor
deprecated
func (*BooleanEntitlementFallback) Descriptor() ([]byte, []int)
Deprecated: Use BooleanEntitlementFallback.ProtoReflect.Descriptor instead.
func (*BooleanEntitlementFallback) GetHasAccess ¶
func (x *BooleanEntitlementFallback) GetHasAccess() bool
func (*BooleanEntitlementFallback) ProtoMessage ¶
func (*BooleanEntitlementFallback) ProtoMessage()
func (*BooleanEntitlementFallback) ProtoReflect ¶
func (x *BooleanEntitlementFallback) ProtoReflect() protoreflect.Message
func (*BooleanEntitlementFallback) Reset ¶
func (x *BooleanEntitlementFallback) Reset()
func (*BooleanEntitlementFallback) String ¶
func (x *BooleanEntitlementFallback) String() string
type BooleanEntitlementOptions ¶
type BooleanEntitlementOptions struct { Fallback *BooleanEntitlementFallback `protobuf:"bytes,1,opt,name=fallback,proto3,oneof" json:"fallback,omitempty"` // contains filtered or unexported fields }
func (*BooleanEntitlementOptions) Descriptor
deprecated
func (*BooleanEntitlementOptions) Descriptor() ([]byte, []int)
Deprecated: Use BooleanEntitlementOptions.ProtoReflect.Descriptor instead.
func (*BooleanEntitlementOptions) GetFallback ¶
func (x *BooleanEntitlementOptions) GetFallback() *BooleanEntitlementFallback
func (*BooleanEntitlementOptions) ProtoMessage ¶
func (*BooleanEntitlementOptions) ProtoMessage()
func (*BooleanEntitlementOptions) ProtoReflect ¶
func (x *BooleanEntitlementOptions) ProtoReflect() protoreflect.Message
func (*BooleanEntitlementOptions) Reset ¶
func (x *BooleanEntitlementOptions) Reset()
func (*BooleanEntitlementOptions) String ¶
func (x *BooleanEntitlementOptions) String() string
type Client ¶
type Client struct { SidecarServiceClient // contains filtered or unexported fields }
Client manages communication with the Sidecar API.
type Entitlement ¶
type Entitlement struct { // Types that are assignable to Entitlement: // // *Entitlement_Boolean // *Entitlement_Numeric // *Entitlement_Metered Entitlement isEntitlement_Entitlement `protobuf_oneof:"entitlement"` // contains filtered or unexported fields }
func (*Entitlement) Descriptor
deprecated
func (*Entitlement) Descriptor() ([]byte, []int)
Deprecated: Use Entitlement.ProtoReflect.Descriptor instead.
func (*Entitlement) GetBoolean ¶
func (x *Entitlement) GetBoolean() *BooleanEntitlement
func (*Entitlement) GetEntitlement ¶
func (m *Entitlement) GetEntitlement() isEntitlement_Entitlement
func (*Entitlement) GetMetered ¶
func (x *Entitlement) GetMetered() *MeteredEntitlement
func (*Entitlement) GetNumeric ¶
func (x *Entitlement) GetNumeric() *NumericEntitlement
func (*Entitlement) ProtoMessage ¶
func (*Entitlement) ProtoMessage()
func (*Entitlement) ProtoReflect ¶
func (x *Entitlement) ProtoReflect() protoreflect.Message
func (*Entitlement) Reset ¶
func (x *Entitlement) Reset()
func (*Entitlement) String ¶
func (x *Entitlement) String() string
type EntitlementFallback ¶
type EntitlementFallback struct { // Types that are assignable to Fallback: // // *EntitlementFallback_Boolean // *EntitlementFallback_Numeric // *EntitlementFallback_Metered Fallback isEntitlementFallback_Fallback `protobuf_oneof:"fallback"` // contains filtered or unexported fields }
func (*EntitlementFallback) Descriptor
deprecated
func (*EntitlementFallback) Descriptor() ([]byte, []int)
Deprecated: Use EntitlementFallback.ProtoReflect.Descriptor instead.
func (*EntitlementFallback) GetBoolean ¶
func (x *EntitlementFallback) GetBoolean() *BooleanEntitlementFallback
func (*EntitlementFallback) GetFallback ¶
func (m *EntitlementFallback) GetFallback() isEntitlementFallback_Fallback
func (*EntitlementFallback) GetMetered ¶
func (x *EntitlementFallback) GetMetered() *MeteredEntitlementFallback
func (*EntitlementFallback) GetNumeric ¶
func (x *EntitlementFallback) GetNumeric() *NumericEntitlementFallback
func (*EntitlementFallback) ProtoMessage ¶
func (*EntitlementFallback) ProtoMessage()
func (*EntitlementFallback) ProtoReflect ¶
func (x *EntitlementFallback) ProtoReflect() protoreflect.Message
func (*EntitlementFallback) Reset ¶
func (x *EntitlementFallback) Reset()
func (*EntitlementFallback) String ¶
func (x *EntitlementFallback) String() string
type EntitlementFallback_Boolean ¶
type EntitlementFallback_Boolean struct {
Boolean *BooleanEntitlementFallback `protobuf:"bytes,1,opt,name=boolean,proto3,oneof"`
}
type EntitlementFallback_Metered ¶
type EntitlementFallback_Metered struct {
Metered *MeteredEntitlementFallback `protobuf:"bytes,3,opt,name=metered,proto3,oneof"`
}
type EntitlementFallback_Numeric ¶
type EntitlementFallback_Numeric struct {
Numeric *NumericEntitlementFallback `protobuf:"bytes,2,opt,name=numeric,proto3,oneof"`
}
type EntitlementFeature ¶
type EntitlementFeature struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FeatureType FeatureType `` /* 129-byte string literal not displayed */ Units *string `protobuf:"bytes,3,opt,name=units,proto3,oneof" json:"units,omitempty"` UnitsPlural *string `protobuf:"bytes,4,opt,name=units_plural,json=unitsPlural,proto3,oneof" json:"units_plural,omitempty"` MeterType MeterType `protobuf:"varint,5,opt,name=meter_type,json=meterType,proto3,enum=stigg.sidecar.v1.MeterType" json:"meter_type,omitempty"` IsMetered bool `protobuf:"varint,6,opt,name=is_metered,json=isMetered,proto3" json:"is_metered,omitempty"` // contains filtered or unexported fields }
func (*EntitlementFeature) Descriptor
deprecated
func (*EntitlementFeature) Descriptor() ([]byte, []int)
Deprecated: Use EntitlementFeature.ProtoReflect.Descriptor instead.
func (*EntitlementFeature) GetFeatureType ¶
func (x *EntitlementFeature) GetFeatureType() FeatureType
func (*EntitlementFeature) GetId ¶
func (x *EntitlementFeature) GetId() string
func (*EntitlementFeature) GetIsMetered ¶
func (x *EntitlementFeature) GetIsMetered() bool
func (*EntitlementFeature) GetMeterType ¶
func (x *EntitlementFeature) GetMeterType() MeterType
func (*EntitlementFeature) GetUnits ¶
func (x *EntitlementFeature) GetUnits() string
func (*EntitlementFeature) GetUnitsPlural ¶
func (x *EntitlementFeature) GetUnitsPlural() string
func (*EntitlementFeature) ProtoMessage ¶
func (*EntitlementFeature) ProtoMessage()
func (*EntitlementFeature) ProtoReflect ¶
func (x *EntitlementFeature) ProtoReflect() protoreflect.Message
func (*EntitlementFeature) Reset ¶
func (x *EntitlementFeature) Reset()
func (*EntitlementFeature) String ¶
func (x *EntitlementFeature) String() string
type EntitlementResetPeriod ¶
type EntitlementResetPeriod int32
const ( EntitlementResetPeriod_ENTITLEMENT_RESET_PERIOD_UNSPECIFIED EntitlementResetPeriod = 0 EntitlementResetPeriod_ENTITLEMENT_RESET_PERIOD_DAY EntitlementResetPeriod = 1 EntitlementResetPeriod_ENTITLEMENT_RESET_PERIOD_HOUR EntitlementResetPeriod = 2 EntitlementResetPeriod_ENTITLEMENT_RESET_PERIOD_MONTH EntitlementResetPeriod = 3 EntitlementResetPeriod_ENTITLEMENT_RESET_PERIOD_WEEK EntitlementResetPeriod = 4 EntitlementResetPeriod_ENTITLEMENT_RESET_PERIOD_YEAR EntitlementResetPeriod = 5 )
func (EntitlementResetPeriod) Descriptor ¶
func (EntitlementResetPeriod) Descriptor() protoreflect.EnumDescriptor
func (EntitlementResetPeriod) Enum ¶
func (x EntitlementResetPeriod) Enum() *EntitlementResetPeriod
func (EntitlementResetPeriod) EnumDescriptor
deprecated
func (EntitlementResetPeriod) EnumDescriptor() ([]byte, []int)
Deprecated: Use EntitlementResetPeriod.Descriptor instead.
func (EntitlementResetPeriod) Number ¶
func (x EntitlementResetPeriod) Number() protoreflect.EnumNumber
func (EntitlementResetPeriod) String ¶
func (x EntitlementResetPeriod) String() string
func (EntitlementResetPeriod) Type ¶
func (EntitlementResetPeriod) Type() protoreflect.EnumType
type Entitlement_Boolean ¶
type Entitlement_Boolean struct {
Boolean *BooleanEntitlement `protobuf:"bytes,1,opt,name=boolean,proto3,oneof"`
}
type Entitlement_Metered ¶
type Entitlement_Metered struct {
Metered *MeteredEntitlement `protobuf:"bytes,3,opt,name=metered,proto3,oneof"`
}
type Entitlement_Numeric ¶
type Entitlement_Numeric struct {
Numeric *NumericEntitlement `protobuf:"bytes,2,opt,name=numeric,proto3,oneof"`
}
type Event ¶
type Event struct { EventName string `protobuf:"bytes,1,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"` CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` IdempotencyKey string `protobuf:"bytes,3,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"` ResourceId *string `protobuf:"bytes,4,opt,name=resource_id,json=resourceId,proto3,oneof" json:"resource_id,omitempty"` Dimensions map[string]*EventDimensionValue `` /* 161-byte string literal not displayed */ Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3,oneof" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetCustomerId ¶
func (*Event) GetDimensions ¶
func (x *Event) GetDimensions() map[string]*EventDimensionValue
func (*Event) GetEventName ¶
func (*Event) GetIdempotencyKey ¶
func (*Event) GetResourceId ¶
func (*Event) GetTimestamp ¶
func (x *Event) GetTimestamp() *timestamppb.Timestamp
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventDimensionValue ¶
type EventDimensionValue struct { // Types that are assignable to Value: // // *EventDimensionValue_StringValue // *EventDimensionValue_NumberValue // *EventDimensionValue_BooleanValue Value isEventDimensionValue_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*EventDimensionValue) Descriptor
deprecated
func (*EventDimensionValue) Descriptor() ([]byte, []int)
Deprecated: Use EventDimensionValue.ProtoReflect.Descriptor instead.
func (*EventDimensionValue) GetBooleanValue ¶
func (x *EventDimensionValue) GetBooleanValue() bool
func (*EventDimensionValue) GetNumberValue ¶
func (x *EventDimensionValue) GetNumberValue() float64
func (*EventDimensionValue) GetStringValue ¶
func (x *EventDimensionValue) GetStringValue() string
func (*EventDimensionValue) GetValue ¶
func (m *EventDimensionValue) GetValue() isEventDimensionValue_Value
func (*EventDimensionValue) ProtoMessage ¶
func (*EventDimensionValue) ProtoMessage()
func (*EventDimensionValue) ProtoReflect ¶
func (x *EventDimensionValue) ProtoReflect() protoreflect.Message
func (*EventDimensionValue) Reset ¶
func (x *EventDimensionValue) Reset()
func (*EventDimensionValue) String ¶
func (x *EventDimensionValue) String() string
type EventDimensionValue_BooleanValue ¶
type EventDimensionValue_BooleanValue struct {
BooleanValue bool `protobuf:"varint,3,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
}
type EventDimensionValue_NumberValue ¶
type EventDimensionValue_NumberValue struct {
NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,proto3,oneof"`
}
type EventDimensionValue_StringValue ¶
type EventDimensionValue_StringValue struct {
StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type FeatureType ¶
type FeatureType int32
const ( FeatureType_FEATURE_TYPE_UNSPECIFIED FeatureType = 0 FeatureType_FEATURE_TYPE_BOOLEAN FeatureType = 1 FeatureType_FEATURE_TYPE_NUMBER FeatureType = 2 )
func (FeatureType) Descriptor ¶
func (FeatureType) Descriptor() protoreflect.EnumDescriptor
func (FeatureType) Enum ¶
func (x FeatureType) Enum() *FeatureType
func (FeatureType) EnumDescriptor
deprecated
func (FeatureType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FeatureType.Descriptor instead.
func (FeatureType) Number ¶
func (x FeatureType) Number() protoreflect.EnumNumber
func (FeatureType) String ¶
func (x FeatureType) String() string
func (FeatureType) Type ¶
func (FeatureType) Type() protoreflect.EnumType
type GetBooleanEntitlementRequest ¶
type GetBooleanEntitlementRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` FeatureId string `protobuf:"bytes,2,opt,name=feature_id,json=featureId,proto3" json:"feature_id,omitempty"` ResourceId *string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof" json:"resource_id,omitempty"` Options *BooleanEntitlementOptions `protobuf:"bytes,4,opt,name=options,proto3,oneof" json:"options,omitempty"` // contains filtered or unexported fields }
func (*GetBooleanEntitlementRequest) Descriptor
deprecated
func (*GetBooleanEntitlementRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBooleanEntitlementRequest.ProtoReflect.Descriptor instead.
func (*GetBooleanEntitlementRequest) GetCustomerId ¶
func (x *GetBooleanEntitlementRequest) GetCustomerId() string
func (*GetBooleanEntitlementRequest) GetFeatureId ¶
func (x *GetBooleanEntitlementRequest) GetFeatureId() string
func (*GetBooleanEntitlementRequest) GetOptions ¶
func (x *GetBooleanEntitlementRequest) GetOptions() *BooleanEntitlementOptions
func (*GetBooleanEntitlementRequest) GetResourceId ¶
func (x *GetBooleanEntitlementRequest) GetResourceId() string
func (*GetBooleanEntitlementRequest) ProtoMessage ¶
func (*GetBooleanEntitlementRequest) ProtoMessage()
func (*GetBooleanEntitlementRequest) ProtoReflect ¶
func (x *GetBooleanEntitlementRequest) ProtoReflect() protoreflect.Message
func (*GetBooleanEntitlementRequest) Reset ¶
func (x *GetBooleanEntitlementRequest) Reset()
func (*GetBooleanEntitlementRequest) String ¶
func (x *GetBooleanEntitlementRequest) String() string
type GetBooleanEntitlementResponse ¶
type GetBooleanEntitlementResponse struct { HasAccess bool `protobuf:"varint,1,opt,name=has_access,json=hasAccess,proto3" json:"has_access,omitempty"` IsFallback bool `protobuf:"varint,2,opt,name=is_fallback,json=isFallback,proto3" json:"is_fallback,omitempty"` AccessDeniedReason *AccessDeniedReason `` /* 165-byte string literal not displayed */ Entitlement *BooleanEntitlement `protobuf:"bytes,4,opt,name=entitlement,proto3" json:"entitlement,omitempty"` // contains filtered or unexported fields }
func (*GetBooleanEntitlementResponse) Descriptor
deprecated
func (*GetBooleanEntitlementResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBooleanEntitlementResponse.ProtoReflect.Descriptor instead.
func (*GetBooleanEntitlementResponse) GetAccessDeniedReason ¶
func (x *GetBooleanEntitlementResponse) GetAccessDeniedReason() AccessDeniedReason
func (*GetBooleanEntitlementResponse) GetEntitlement ¶
func (x *GetBooleanEntitlementResponse) GetEntitlement() *BooleanEntitlement
func (*GetBooleanEntitlementResponse) GetHasAccess ¶
func (x *GetBooleanEntitlementResponse) GetHasAccess() bool
func (*GetBooleanEntitlementResponse) GetIsFallback ¶
func (x *GetBooleanEntitlementResponse) GetIsFallback() bool
func (*GetBooleanEntitlementResponse) ProtoMessage ¶
func (*GetBooleanEntitlementResponse) ProtoMessage()
func (*GetBooleanEntitlementResponse) ProtoReflect ¶
func (x *GetBooleanEntitlementResponse) ProtoReflect() protoreflect.Message
func (*GetBooleanEntitlementResponse) Reset ¶
func (x *GetBooleanEntitlementResponse) Reset()
func (*GetBooleanEntitlementResponse) String ¶
func (x *GetBooleanEntitlementResponse) String() string
type GetEntitlementsRequest ¶
type GetEntitlementsRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` ResourceId *string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3,oneof" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*GetEntitlementsRequest) Descriptor
deprecated
func (*GetEntitlementsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEntitlementsRequest.ProtoReflect.Descriptor instead.
func (*GetEntitlementsRequest) GetCustomerId ¶
func (x *GetEntitlementsRequest) GetCustomerId() string
func (*GetEntitlementsRequest) GetResourceId ¶
func (x *GetEntitlementsRequest) GetResourceId() string
func (*GetEntitlementsRequest) ProtoMessage ¶
func (*GetEntitlementsRequest) ProtoMessage()
func (*GetEntitlementsRequest) ProtoReflect ¶
func (x *GetEntitlementsRequest) ProtoReflect() protoreflect.Message
func (*GetEntitlementsRequest) Reset ¶
func (x *GetEntitlementsRequest) Reset()
func (*GetEntitlementsRequest) String ¶
func (x *GetEntitlementsRequest) String() string
type GetEntitlementsResponse ¶
type GetEntitlementsResponse struct { Entitlements []*Entitlement `protobuf:"bytes,1,rep,name=entitlements,proto3" json:"entitlements,omitempty"` // contains filtered or unexported fields }
func (*GetEntitlementsResponse) Descriptor
deprecated
func (*GetEntitlementsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetEntitlementsResponse.ProtoReflect.Descriptor instead.
func (*GetEntitlementsResponse) GetEntitlements ¶
func (x *GetEntitlementsResponse) GetEntitlements() []*Entitlement
func (*GetEntitlementsResponse) ProtoMessage ¶
func (*GetEntitlementsResponse) ProtoMessage()
func (*GetEntitlementsResponse) ProtoReflect ¶
func (x *GetEntitlementsResponse) ProtoReflect() protoreflect.Message
func (*GetEntitlementsResponse) Reset ¶
func (x *GetEntitlementsResponse) Reset()
func (*GetEntitlementsResponse) String ¶
func (x *GetEntitlementsResponse) String() string
type GetMeteredEntitlementRequest ¶
type GetMeteredEntitlementRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` FeatureId string `protobuf:"bytes,2,opt,name=feature_id,json=featureId,proto3" json:"feature_id,omitempty"` ResourceId *string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof" json:"resource_id,omitempty"` Options *MeteredEntitlementOptions `protobuf:"bytes,4,opt,name=options,proto3,oneof" json:"options,omitempty"` // contains filtered or unexported fields }
func (*GetMeteredEntitlementRequest) Descriptor
deprecated
func (*GetMeteredEntitlementRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMeteredEntitlementRequest.ProtoReflect.Descriptor instead.
func (*GetMeteredEntitlementRequest) GetCustomerId ¶
func (x *GetMeteredEntitlementRequest) GetCustomerId() string
func (*GetMeteredEntitlementRequest) GetFeatureId ¶
func (x *GetMeteredEntitlementRequest) GetFeatureId() string
func (*GetMeteredEntitlementRequest) GetOptions ¶
func (x *GetMeteredEntitlementRequest) GetOptions() *MeteredEntitlementOptions
func (*GetMeteredEntitlementRequest) GetResourceId ¶
func (x *GetMeteredEntitlementRequest) GetResourceId() string
func (*GetMeteredEntitlementRequest) ProtoMessage ¶
func (*GetMeteredEntitlementRequest) ProtoMessage()
func (*GetMeteredEntitlementRequest) ProtoReflect ¶
func (x *GetMeteredEntitlementRequest) ProtoReflect() protoreflect.Message
func (*GetMeteredEntitlementRequest) Reset ¶
func (x *GetMeteredEntitlementRequest) Reset()
func (*GetMeteredEntitlementRequest) String ¶
func (x *GetMeteredEntitlementRequest) String() string
type GetMeteredEntitlementResponse ¶
type GetMeteredEntitlementResponse struct { HasAccess bool `protobuf:"varint,1,opt,name=has_access,json=hasAccess,proto3" json:"has_access,omitempty"` IsFallback bool `protobuf:"varint,2,opt,name=is_fallback,json=isFallback,proto3" json:"is_fallback,omitempty"` AccessDeniedReason *AccessDeniedReason `` /* 165-byte string literal not displayed */ RequestedUsage float64 `protobuf:"fixed64,4,opt,name=requested_usage,json=requestedUsage,proto3" json:"requested_usage,omitempty"` Entitlement *MeteredEntitlement `protobuf:"bytes,5,opt,name=entitlement,proto3" json:"entitlement,omitempty"` // contains filtered or unexported fields }
func (*GetMeteredEntitlementResponse) Descriptor
deprecated
func (*GetMeteredEntitlementResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMeteredEntitlementResponse.ProtoReflect.Descriptor instead.
func (*GetMeteredEntitlementResponse) GetAccessDeniedReason ¶
func (x *GetMeteredEntitlementResponse) GetAccessDeniedReason() AccessDeniedReason
func (*GetMeteredEntitlementResponse) GetEntitlement ¶
func (x *GetMeteredEntitlementResponse) GetEntitlement() *MeteredEntitlement
func (*GetMeteredEntitlementResponse) GetHasAccess ¶
func (x *GetMeteredEntitlementResponse) GetHasAccess() bool
func (*GetMeteredEntitlementResponse) GetIsFallback ¶
func (x *GetMeteredEntitlementResponse) GetIsFallback() bool
func (*GetMeteredEntitlementResponse) GetRequestedUsage ¶
func (x *GetMeteredEntitlementResponse) GetRequestedUsage() float64
func (*GetMeteredEntitlementResponse) ProtoMessage ¶
func (*GetMeteredEntitlementResponse) ProtoMessage()
func (*GetMeteredEntitlementResponse) ProtoReflect ¶
func (x *GetMeteredEntitlementResponse) ProtoReflect() protoreflect.Message
func (*GetMeteredEntitlementResponse) Reset ¶
func (x *GetMeteredEntitlementResponse) Reset()
func (*GetMeteredEntitlementResponse) String ¶
func (x *GetMeteredEntitlementResponse) String() string
type GetNumericEntitlementRequest ¶
type GetNumericEntitlementRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` FeatureId string `protobuf:"bytes,2,opt,name=feature_id,json=featureId,proto3" json:"feature_id,omitempty"` ResourceId *string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof" json:"resource_id,omitempty"` Options *NumericEntitlementOptions `protobuf:"bytes,4,opt,name=options,proto3,oneof" json:"options,omitempty"` // contains filtered or unexported fields }
func (*GetNumericEntitlementRequest) Descriptor
deprecated
func (*GetNumericEntitlementRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNumericEntitlementRequest.ProtoReflect.Descriptor instead.
func (*GetNumericEntitlementRequest) GetCustomerId ¶
func (x *GetNumericEntitlementRequest) GetCustomerId() string
func (*GetNumericEntitlementRequest) GetFeatureId ¶
func (x *GetNumericEntitlementRequest) GetFeatureId() string
func (*GetNumericEntitlementRequest) GetOptions ¶
func (x *GetNumericEntitlementRequest) GetOptions() *NumericEntitlementOptions
func (*GetNumericEntitlementRequest) GetResourceId ¶
func (x *GetNumericEntitlementRequest) GetResourceId() string
func (*GetNumericEntitlementRequest) ProtoMessage ¶
func (*GetNumericEntitlementRequest) ProtoMessage()
func (*GetNumericEntitlementRequest) ProtoReflect ¶
func (x *GetNumericEntitlementRequest) ProtoReflect() protoreflect.Message
func (*GetNumericEntitlementRequest) Reset ¶
func (x *GetNumericEntitlementRequest) Reset()
func (*GetNumericEntitlementRequest) String ¶
func (x *GetNumericEntitlementRequest) String() string
type GetNumericEntitlementResponse ¶
type GetNumericEntitlementResponse struct { HasAccess bool `protobuf:"varint,1,opt,name=has_access,json=hasAccess,proto3" json:"has_access,omitempty"` IsFallback bool `protobuf:"varint,2,opt,name=is_fallback,json=isFallback,proto3" json:"is_fallback,omitempty"` AccessDeniedReason *AccessDeniedReason `` /* 165-byte string literal not displayed */ Entitlement *NumericEntitlement `protobuf:"bytes,4,opt,name=entitlement,proto3" json:"entitlement,omitempty"` // contains filtered or unexported fields }
func (*GetNumericEntitlementResponse) Descriptor
deprecated
func (*GetNumericEntitlementResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNumericEntitlementResponse.ProtoReflect.Descriptor instead.
func (*GetNumericEntitlementResponse) GetAccessDeniedReason ¶
func (x *GetNumericEntitlementResponse) GetAccessDeniedReason() AccessDeniedReason
func (*GetNumericEntitlementResponse) GetEntitlement ¶
func (x *GetNumericEntitlementResponse) GetEntitlement() *NumericEntitlement
func (*GetNumericEntitlementResponse) GetHasAccess ¶
func (x *GetNumericEntitlementResponse) GetHasAccess() bool
func (*GetNumericEntitlementResponse) GetIsFallback ¶
func (x *GetNumericEntitlementResponse) GetIsFallback() bool
func (*GetNumericEntitlementResponse) ProtoMessage ¶
func (*GetNumericEntitlementResponse) ProtoMessage()
func (*GetNumericEntitlementResponse) ProtoReflect ¶
func (x *GetNumericEntitlementResponse) ProtoReflect() protoreflect.Message
func (*GetNumericEntitlementResponse) Reset ¶
func (x *GetNumericEntitlementResponse) Reset()
func (*GetNumericEntitlementResponse) String ¶
func (x *GetNumericEntitlementResponse) String() string
type LocalSidecarConfig ¶
type LocalSidecarConfig struct { WsEnabled *bool `protobuf:"varint,5,opt,name=ws_enabled,json=wsEnabled,proto3,oneof" json:"ws_enabled,omitempty"` WsUrl *string `protobuf:"bytes,6,opt,name=ws_url,json=wsUrl,proto3,oneof" json:"ws_url,omitempty"` Redis *RedisOptions `protobuf:"bytes,7,opt,name=redis,proto3,oneof" json:"redis,omitempty"` EntitlementsFallback map[string]*EntitlementFallback `` /* 209-byte string literal not displayed */ CacheMaxSizeBytes *int64 `protobuf:"varint,9,opt,name=cache_max_size_bytes,json=cacheMaxSizeBytes,proto3,oneof" json:"cache_max_size_bytes,omitempty"` // contains filtered or unexported fields }
func (*LocalSidecarConfig) Descriptor
deprecated
func (*LocalSidecarConfig) Descriptor() ([]byte, []int)
Deprecated: Use LocalSidecarConfig.ProtoReflect.Descriptor instead.
func (*LocalSidecarConfig) GetCacheMaxSizeBytes ¶
func (x *LocalSidecarConfig) GetCacheMaxSizeBytes() int64
func (*LocalSidecarConfig) GetEntitlementsFallback ¶
func (x *LocalSidecarConfig) GetEntitlementsFallback() map[string]*EntitlementFallback
func (*LocalSidecarConfig) GetRedis ¶
func (x *LocalSidecarConfig) GetRedis() *RedisOptions
func (*LocalSidecarConfig) GetWsEnabled ¶
func (x *LocalSidecarConfig) GetWsEnabled() bool
func (*LocalSidecarConfig) GetWsUrl ¶
func (x *LocalSidecarConfig) GetWsUrl() string
func (*LocalSidecarConfig) ProtoMessage ¶
func (*LocalSidecarConfig) ProtoMessage()
func (*LocalSidecarConfig) ProtoReflect ¶
func (x *LocalSidecarConfig) ProtoReflect() protoreflect.Message
func (*LocalSidecarConfig) Reset ¶
func (x *LocalSidecarConfig) Reset()
func (*LocalSidecarConfig) String ¶
func (x *LocalSidecarConfig) String() string
type MeterType ¶
type MeterType int32
func (MeterType) Descriptor ¶
func (MeterType) Descriptor() protoreflect.EnumDescriptor
func (MeterType) EnumDescriptor
deprecated
func (MeterType) Number ¶
func (x MeterType) Number() protoreflect.EnumNumber
func (MeterType) Type ¶
func (MeterType) Type() protoreflect.EnumType
type MeteredEntitlement ¶
type MeteredEntitlement struct { Feature *EntitlementFeature `protobuf:"bytes,4,opt,name=feature,proto3,oneof" json:"feature,omitempty"` UsageLimit *float64 `protobuf:"fixed64,5,opt,name=usage_limit,json=usageLimit,proto3,oneof" json:"usage_limit,omitempty"` IsUnlimited bool `protobuf:"varint,6,opt,name=is_unlimited,json=isUnlimited,proto3" json:"is_unlimited,omitempty"` CurrentUsage float64 `protobuf:"fixed64,7,opt,name=current_usage,json=currentUsage,proto3" json:"current_usage,omitempty"` ResetPeriod *EntitlementResetPeriod `` /* 146-byte string literal not displayed */ NextResetDate *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=next_reset_date,json=nextResetDate,proto3,oneof" json:"next_reset_date,omitempty"` // contains filtered or unexported fields }
func (*MeteredEntitlement) Descriptor
deprecated
func (*MeteredEntitlement) Descriptor() ([]byte, []int)
Deprecated: Use MeteredEntitlement.ProtoReflect.Descriptor instead.
func (*MeteredEntitlement) GetCurrentUsage ¶
func (x *MeteredEntitlement) GetCurrentUsage() float64
func (*MeteredEntitlement) GetFeature ¶
func (x *MeteredEntitlement) GetFeature() *EntitlementFeature
func (*MeteredEntitlement) GetIsUnlimited ¶
func (x *MeteredEntitlement) GetIsUnlimited() bool
func (*MeteredEntitlement) GetNextResetDate ¶
func (x *MeteredEntitlement) GetNextResetDate() *timestamppb.Timestamp
func (*MeteredEntitlement) GetResetPeriod ¶
func (x *MeteredEntitlement) GetResetPeriod() EntitlementResetPeriod
func (*MeteredEntitlement) GetUsageLimit ¶
func (x *MeteredEntitlement) GetUsageLimit() float64
func (*MeteredEntitlement) ProtoMessage ¶
func (*MeteredEntitlement) ProtoMessage()
func (*MeteredEntitlement) ProtoReflect ¶
func (x *MeteredEntitlement) ProtoReflect() protoreflect.Message
func (*MeteredEntitlement) Reset ¶
func (x *MeteredEntitlement) Reset()
func (*MeteredEntitlement) String ¶
func (x *MeteredEntitlement) String() string
type MeteredEntitlementFallback ¶
type MeteredEntitlementFallback struct { HasAccess bool `protobuf:"varint,1,opt,name=has_access,json=hasAccess,proto3" json:"has_access,omitempty"` UsageLimit *float64 `protobuf:"fixed64,2,opt,name=usage_limit,json=usageLimit,proto3,oneof" json:"usage_limit,omitempty"` IsUnlimited *bool `protobuf:"varint,3,opt,name=is_unlimited,json=isUnlimited,proto3,oneof" json:"is_unlimited,omitempty"` // contains filtered or unexported fields }
func (*MeteredEntitlementFallback) Descriptor
deprecated
func (*MeteredEntitlementFallback) Descriptor() ([]byte, []int)
Deprecated: Use MeteredEntitlementFallback.ProtoReflect.Descriptor instead.
func (*MeteredEntitlementFallback) GetHasAccess ¶
func (x *MeteredEntitlementFallback) GetHasAccess() bool
func (*MeteredEntitlementFallback) GetIsUnlimited ¶
func (x *MeteredEntitlementFallback) GetIsUnlimited() bool
func (*MeteredEntitlementFallback) GetUsageLimit ¶
func (x *MeteredEntitlementFallback) GetUsageLimit() float64
func (*MeteredEntitlementFallback) ProtoMessage ¶
func (*MeteredEntitlementFallback) ProtoMessage()
func (*MeteredEntitlementFallback) ProtoReflect ¶
func (x *MeteredEntitlementFallback) ProtoReflect() protoreflect.Message
func (*MeteredEntitlementFallback) Reset ¶
func (x *MeteredEntitlementFallback) Reset()
func (*MeteredEntitlementFallback) String ¶
func (x *MeteredEntitlementFallback) String() string
type MeteredEntitlementOptions ¶
type MeteredEntitlementOptions struct { RequestedUsage *float64 `protobuf:"fixed64,1,opt,name=requested_usage,json=requestedUsage,proto3,oneof" json:"requested_usage,omitempty"` Fallback *MeteredEntitlementFallback `protobuf:"bytes,2,opt,name=fallback,proto3,oneof" json:"fallback,omitempty"` // contains filtered or unexported fields }
func (*MeteredEntitlementOptions) Descriptor
deprecated
func (*MeteredEntitlementOptions) Descriptor() ([]byte, []int)
Deprecated: Use MeteredEntitlementOptions.ProtoReflect.Descriptor instead.
func (*MeteredEntitlementOptions) GetFallback ¶
func (x *MeteredEntitlementOptions) GetFallback() *MeteredEntitlementFallback
func (*MeteredEntitlementOptions) GetRequestedUsage ¶
func (x *MeteredEntitlementOptions) GetRequestedUsage() float64
func (*MeteredEntitlementOptions) ProtoMessage ¶
func (*MeteredEntitlementOptions) ProtoMessage()
func (*MeteredEntitlementOptions) ProtoReflect ¶
func (x *MeteredEntitlementOptions) ProtoReflect() protoreflect.Message
func (*MeteredEntitlementOptions) Reset ¶
func (x *MeteredEntitlementOptions) Reset()
func (*MeteredEntitlementOptions) String ¶
func (x *MeteredEntitlementOptions) String() string
type NumericEntitlement ¶
type NumericEntitlement struct { Feature *EntitlementFeature `protobuf:"bytes,4,opt,name=feature,proto3,oneof" json:"feature,omitempty"` Value *int32 `protobuf:"varint,5,opt,name=value,proto3,oneof" json:"value,omitempty"` IsUnlimited bool `protobuf:"varint,6,opt,name=is_unlimited,json=isUnlimited,proto3" json:"is_unlimited,omitempty"` // contains filtered or unexported fields }
func (*NumericEntitlement) Descriptor
deprecated
func (*NumericEntitlement) Descriptor() ([]byte, []int)
Deprecated: Use NumericEntitlement.ProtoReflect.Descriptor instead.
func (*NumericEntitlement) GetFeature ¶
func (x *NumericEntitlement) GetFeature() *EntitlementFeature
func (*NumericEntitlement) GetIsUnlimited ¶
func (x *NumericEntitlement) GetIsUnlimited() bool
func (*NumericEntitlement) GetValue ¶
func (x *NumericEntitlement) GetValue() int32
func (*NumericEntitlement) ProtoMessage ¶
func (*NumericEntitlement) ProtoMessage()
func (*NumericEntitlement) ProtoReflect ¶
func (x *NumericEntitlement) ProtoReflect() protoreflect.Message
func (*NumericEntitlement) Reset ¶
func (x *NumericEntitlement) Reset()
func (*NumericEntitlement) String ¶
func (x *NumericEntitlement) String() string
type NumericEntitlementFallback ¶
type NumericEntitlementFallback struct { HasAccess bool `protobuf:"varint,1,opt,name=has_access,json=hasAccess,proto3" json:"has_access,omitempty"` Value *int32 `protobuf:"varint,2,opt,name=value,proto3,oneof" json:"value,omitempty"` IsUnlimited *bool `protobuf:"varint,3,opt,name=is_unlimited,json=isUnlimited,proto3,oneof" json:"is_unlimited,omitempty"` // contains filtered or unexported fields }
func (*NumericEntitlementFallback) Descriptor
deprecated
func (*NumericEntitlementFallback) Descriptor() ([]byte, []int)
Deprecated: Use NumericEntitlementFallback.ProtoReflect.Descriptor instead.
func (*NumericEntitlementFallback) GetHasAccess ¶
func (x *NumericEntitlementFallback) GetHasAccess() bool
func (*NumericEntitlementFallback) GetIsUnlimited ¶
func (x *NumericEntitlementFallback) GetIsUnlimited() bool
func (*NumericEntitlementFallback) GetValue ¶
func (x *NumericEntitlementFallback) GetValue() int32
func (*NumericEntitlementFallback) ProtoMessage ¶
func (*NumericEntitlementFallback) ProtoMessage()
func (*NumericEntitlementFallback) ProtoReflect ¶
func (x *NumericEntitlementFallback) ProtoReflect() protoreflect.Message
func (*NumericEntitlementFallback) Reset ¶
func (x *NumericEntitlementFallback) Reset()
func (*NumericEntitlementFallback) String ¶
func (x *NumericEntitlementFallback) String() string
type NumericEntitlementOptions ¶
type NumericEntitlementOptions struct { Fallback *NumericEntitlementFallback `protobuf:"bytes,1,opt,name=fallback,proto3,oneof" json:"fallback,omitempty"` // contains filtered or unexported fields }
func (*NumericEntitlementOptions) Descriptor
deprecated
func (*NumericEntitlementOptions) Descriptor() ([]byte, []int)
Deprecated: Use NumericEntitlementOptions.ProtoReflect.Descriptor instead.
func (*NumericEntitlementOptions) GetFallback ¶
func (x *NumericEntitlementOptions) GetFallback() *NumericEntitlementFallback
func (*NumericEntitlementOptions) ProtoMessage ¶
func (*NumericEntitlementOptions) ProtoMessage()
func (*NumericEntitlementOptions) ProtoReflect ¶
func (x *NumericEntitlementOptions) ProtoReflect() protoreflect.Message
func (*NumericEntitlementOptions) Reset ¶
func (x *NumericEntitlementOptions) Reset()
func (*NumericEntitlementOptions) String ¶
func (x *NumericEntitlementOptions) String() string
type RedisOptions ¶
type RedisOptions struct { EnvironmentPrefix string `protobuf:"bytes,1,opt,name=environment_prefix,json=environmentPrefix,proto3" json:"environment_prefix,omitempty"` Host *string `protobuf:"bytes,2,opt,name=host,proto3,oneof" json:"host,omitempty"` Port *int32 `protobuf:"varint,3,opt,name=port,proto3,oneof" json:"port,omitempty"` Db *int32 `protobuf:"varint,4,opt,name=db,proto3,oneof" json:"db,omitempty"` Username *string `protobuf:"bytes,5,opt,name=username,proto3,oneof" json:"username,omitempty"` Password *string `protobuf:"bytes,6,opt,name=password,proto3,oneof" json:"password,omitempty"` Ttl *int32 `protobuf:"varint,7,opt,name=ttl,proto3,oneof" json:"ttl,omitempty"` // contains filtered or unexported fields }
func (*RedisOptions) Descriptor
deprecated
func (*RedisOptions) Descriptor() ([]byte, []int)
Deprecated: Use RedisOptions.ProtoReflect.Descriptor instead.
func (*RedisOptions) GetDb ¶
func (x *RedisOptions) GetDb() int32
func (*RedisOptions) GetEnvironmentPrefix ¶
func (x *RedisOptions) GetEnvironmentPrefix() string
func (*RedisOptions) GetHost ¶
func (x *RedisOptions) GetHost() string
func (*RedisOptions) GetPassword ¶
func (x *RedisOptions) GetPassword() string
func (*RedisOptions) GetPort ¶
func (x *RedisOptions) GetPort() int32
func (*RedisOptions) GetTtl ¶
func (x *RedisOptions) GetTtl() int32
func (*RedisOptions) GetUsername ¶
func (x *RedisOptions) GetUsername() string
func (*RedisOptions) ProtoMessage ¶
func (*RedisOptions) ProtoMessage()
func (*RedisOptions) ProtoReflect ¶
func (x *RedisOptions) ProtoReflect() protoreflect.Message
func (*RedisOptions) Reset ¶
func (x *RedisOptions) Reset()
func (*RedisOptions) String ¶
func (x *RedisOptions) String() string
type ReloadEntitlementsRequest ¶
type ReloadEntitlementsRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` ResourceId *string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3,oneof" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*ReloadEntitlementsRequest) Descriptor
deprecated
func (*ReloadEntitlementsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReloadEntitlementsRequest.ProtoReflect.Descriptor instead.
func (*ReloadEntitlementsRequest) GetCustomerId ¶
func (x *ReloadEntitlementsRequest) GetCustomerId() string
func (*ReloadEntitlementsRequest) GetResourceId ¶
func (x *ReloadEntitlementsRequest) GetResourceId() string
func (*ReloadEntitlementsRequest) ProtoMessage ¶
func (*ReloadEntitlementsRequest) ProtoMessage()
func (*ReloadEntitlementsRequest) ProtoReflect ¶
func (x *ReloadEntitlementsRequest) ProtoReflect() protoreflect.Message
func (*ReloadEntitlementsRequest) Reset ¶
func (x *ReloadEntitlementsRequest) Reset()
func (*ReloadEntitlementsRequest) String ¶
func (x *ReloadEntitlementsRequest) String() string
type ReloadEntitlementsResponse ¶
type ReloadEntitlementsResponse struct { EntitledEntityExists bool `protobuf:"varint,1,opt,name=entitled_entity_exists,json=entitledEntityExists,proto3" json:"entitled_entity_exists,omitempty"` // contains filtered or unexported fields }
func (*ReloadEntitlementsResponse) Descriptor
deprecated
func (*ReloadEntitlementsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReloadEntitlementsResponse.ProtoReflect.Descriptor instead.
func (*ReloadEntitlementsResponse) GetEntitledEntityExists ¶
func (x *ReloadEntitlementsResponse) GetEntitledEntityExists() bool
func (*ReloadEntitlementsResponse) ProtoMessage ¶
func (*ReloadEntitlementsResponse) ProtoMessage()
func (*ReloadEntitlementsResponse) ProtoReflect ¶
func (x *ReloadEntitlementsResponse) ProtoReflect() protoreflect.Message
func (*ReloadEntitlementsResponse) Reset ¶
func (x *ReloadEntitlementsResponse) Reset()
func (*ReloadEntitlementsResponse) String ¶
func (x *ReloadEntitlementsResponse) String() string
type ReportEventsRequest ¶
type ReportEventsRequest struct { Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
func (*ReportEventsRequest) Descriptor
deprecated
func (*ReportEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReportEventsRequest.ProtoReflect.Descriptor instead.
func (*ReportEventsRequest) GetEvents ¶
func (x *ReportEventsRequest) GetEvents() []*Event
func (*ReportEventsRequest) ProtoMessage ¶
func (*ReportEventsRequest) ProtoMessage()
func (*ReportEventsRequest) ProtoReflect ¶
func (x *ReportEventsRequest) ProtoReflect() protoreflect.Message
func (*ReportEventsRequest) Reset ¶
func (x *ReportEventsRequest) Reset()
func (*ReportEventsRequest) String ¶
func (x *ReportEventsRequest) String() string
type ReportUsageRequest ¶
type ReportUsageRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` ResourceId *string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3,oneof" json:"resource_id,omitempty"` FeatureId string `protobuf:"bytes,3,opt,name=feature_id,json=featureId,proto3" json:"feature_id,omitempty"` Value float64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"` UpdateBehavior *UsageUpdateBehavior `` /* 152-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ReportUsageRequest) Descriptor
deprecated
func (*ReportUsageRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReportUsageRequest.ProtoReflect.Descriptor instead.
func (*ReportUsageRequest) GetCustomerId ¶
func (x *ReportUsageRequest) GetCustomerId() string
func (*ReportUsageRequest) GetFeatureId ¶
func (x *ReportUsageRequest) GetFeatureId() string
func (*ReportUsageRequest) GetResourceId ¶
func (x *ReportUsageRequest) GetResourceId() string
func (*ReportUsageRequest) GetUpdateBehavior ¶
func (x *ReportUsageRequest) GetUpdateBehavior() UsageUpdateBehavior
func (*ReportUsageRequest) GetValue ¶
func (x *ReportUsageRequest) GetValue() float64
func (*ReportUsageRequest) ProtoMessage ¶
func (*ReportUsageRequest) ProtoMessage()
func (*ReportUsageRequest) ProtoReflect ¶
func (x *ReportUsageRequest) ProtoReflect() protoreflect.Message
func (*ReportUsageRequest) Reset ¶
func (x *ReportUsageRequest) Reset()
func (*ReportUsageRequest) String ¶
func (x *ReportUsageRequest) String() string
type ReportUsageResponse ¶
type ReportUsageResponse struct { MeasurementId string `protobuf:"bytes,1,opt,name=measurement_id,json=measurementId,proto3" json:"measurement_id,omitempty"` // contains filtered or unexported fields }
func (*ReportUsageResponse) Descriptor
deprecated
func (*ReportUsageResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReportUsageResponse.ProtoReflect.Descriptor instead.
func (*ReportUsageResponse) GetMeasurementId ¶
func (x *ReportUsageResponse) GetMeasurementId() string
func (*ReportUsageResponse) ProtoMessage ¶
func (*ReportUsageResponse) ProtoMessage()
func (*ReportUsageResponse) ProtoReflect ¶
func (x *ReportUsageResponse) ProtoReflect() protoreflect.Message
func (*ReportUsageResponse) Reset ¶
func (x *ReportUsageResponse) Reset()
func (*ReportUsageResponse) String ¶
func (x *ReportUsageResponse) String() string
type SidecarServiceClient ¶
type SidecarServiceClient interface { GetEntitlements(ctx context.Context, in *GetEntitlementsRequest, opts ...grpc.CallOption) (*GetEntitlementsResponse, error) GetBooleanEntitlement(ctx context.Context, in *GetBooleanEntitlementRequest, opts ...grpc.CallOption) (*GetBooleanEntitlementResponse, error) GetNumericEntitlement(ctx context.Context, in *GetNumericEntitlementRequest, opts ...grpc.CallOption) (*GetNumericEntitlementResponse, error) GetMeteredEntitlement(ctx context.Context, in *GetMeteredEntitlementRequest, opts ...grpc.CallOption) (*GetMeteredEntitlementResponse, error) ReportUsage(ctx context.Context, in *ReportUsageRequest, opts ...grpc.CallOption) (*ReportUsageResponse, error) ReportEvents(ctx context.Context, in *ReportEventsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) ReloadEntitlements(ctx context.Context, in *ReloadEntitlementsRequest, opts ...grpc.CallOption) (*ReloadEntitlementsResponse, error) }
SidecarServiceClient is the client API for SidecarService 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 NewSidecarServiceClient ¶
func NewSidecarServiceClient(cc grpc.ClientConnInterface) SidecarServiceClient
type SidecarServiceServer ¶
type SidecarServiceServer interface { GetEntitlements(context.Context, *GetEntitlementsRequest) (*GetEntitlementsResponse, error) GetBooleanEntitlement(context.Context, *GetBooleanEntitlementRequest) (*GetBooleanEntitlementResponse, error) GetNumericEntitlement(context.Context, *GetNumericEntitlementRequest) (*GetNumericEntitlementResponse, error) GetMeteredEntitlement(context.Context, *GetMeteredEntitlementRequest) (*GetMeteredEntitlementResponse, error) ReportUsage(context.Context, *ReportUsageRequest) (*ReportUsageResponse, error) ReportEvents(context.Context, *ReportEventsRequest) (*emptypb.Empty, error) ReloadEntitlements(context.Context, *ReloadEntitlementsRequest) (*ReloadEntitlementsResponse, error) // contains filtered or unexported methods }
SidecarServiceServer is the server API for SidecarService service. All implementations must embed UnimplementedSidecarServiceServer for forward compatibility.
type UnimplementedSidecarServiceServer ¶
type UnimplementedSidecarServiceServer struct{}
UnimplementedSidecarServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSidecarServiceServer) GetBooleanEntitlement ¶
func (UnimplementedSidecarServiceServer) GetBooleanEntitlement(context.Context, *GetBooleanEntitlementRequest) (*GetBooleanEntitlementResponse, error)
func (UnimplementedSidecarServiceServer) GetEntitlements ¶
func (UnimplementedSidecarServiceServer) GetEntitlements(context.Context, *GetEntitlementsRequest) (*GetEntitlementsResponse, error)
func (UnimplementedSidecarServiceServer) GetMeteredEntitlement ¶
func (UnimplementedSidecarServiceServer) GetMeteredEntitlement(context.Context, *GetMeteredEntitlementRequest) (*GetMeteredEntitlementResponse, error)
func (UnimplementedSidecarServiceServer) GetNumericEntitlement ¶
func (UnimplementedSidecarServiceServer) GetNumericEntitlement(context.Context, *GetNumericEntitlementRequest) (*GetNumericEntitlementResponse, error)
func (UnimplementedSidecarServiceServer) ReloadEntitlements ¶
func (UnimplementedSidecarServiceServer) ReloadEntitlements(context.Context, *ReloadEntitlementsRequest) (*ReloadEntitlementsResponse, error)
func (UnimplementedSidecarServiceServer) ReportEvents ¶
func (UnimplementedSidecarServiceServer) ReportEvents(context.Context, *ReportEventsRequest) (*emptypb.Empty, error)
func (UnimplementedSidecarServiceServer) ReportUsage ¶
func (UnimplementedSidecarServiceServer) ReportUsage(context.Context, *ReportUsageRequest) (*ReportUsageResponse, error)
type UnsafeSidecarServiceServer ¶
type UnsafeSidecarServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSidecarServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SidecarServiceServer will result in compilation errors.
type UsageUpdateBehavior ¶
type UsageUpdateBehavior int32
const ( UsageUpdateBehavior_USAGE_UPDATE_BEHAVIOR_UNSPECIFIED UsageUpdateBehavior = 0 UsageUpdateBehavior_USAGE_UPDATE_BEHAVIOR_DELTA UsageUpdateBehavior = 1 UsageUpdateBehavior_USAGE_UPDATE_BEHAVIOR_SET UsageUpdateBehavior = 2 )
func (UsageUpdateBehavior) Descriptor ¶
func (UsageUpdateBehavior) Descriptor() protoreflect.EnumDescriptor
func (UsageUpdateBehavior) Enum ¶
func (x UsageUpdateBehavior) Enum() *UsageUpdateBehavior
func (UsageUpdateBehavior) EnumDescriptor
deprecated
func (UsageUpdateBehavior) EnumDescriptor() ([]byte, []int)
Deprecated: Use UsageUpdateBehavior.Descriptor instead.
func (UsageUpdateBehavior) Number ¶
func (x UsageUpdateBehavior) Number() protoreflect.EnumNumber
func (UsageUpdateBehavior) String ¶
func (x UsageUpdateBehavior) String() string
func (UsageUpdateBehavior) Type ¶
func (UsageUpdateBehavior) Type() protoreflect.EnumType