stigg

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

README

Stigg Sidecar Go SDK

A Go client library for accessing the Stigg Sidecar.

Installation

go get github.com/jaredpiedt/stigg-sidecar-sdk-go

Usage

package main

import (
	"context"

	"github.com/jaredpiedt/stigg-sidecar-sdk-go"
)

func main() {
	ctx := context.Background()

	client, err := stigg.NewClient("localhost:8443")
	if err != nil {
		log.Fatalf(err)
	}
    defer client.Close()

	resp, err := client.GetEntitlements(ctx, &stigg.GetEntitlementsRequest{
		CustomerId: *customerID,
	})
	if err != nil {
		log.Fatalf(err)
	}
}

Documentation

Index

Constants

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

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

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

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

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

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

View Source
var File_sidecar_proto protoreflect.FileDescriptor
View Source
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) Enum

func (AccessDeniedReason) EnumDescriptor deprecated

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

Deprecated: Use AccessDeniedReason.Descriptor instead.

func (AccessDeniedReason) Number

func (AccessDeniedReason) String

func (x AccessDeniedReason) String() string

func (AccessDeniedReason) Type

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

Deprecated: Use ApiConfig.ProtoReflect.Descriptor instead.

func (*ApiConfig) GetApiKey

func (x *ApiConfig) GetApiKey() string

func (*ApiConfig) GetApiUrl

func (x *ApiConfig) GetApiUrl() string

func (*ApiConfig) GetEdgeApiUrl

func (x *ApiConfig) GetEdgeApiUrl() string

func (*ApiConfig) GetEdgeEnabled

func (x *ApiConfig) GetEdgeEnabled() bool

func (*ApiConfig) ProtoMessage

func (*ApiConfig) ProtoMessage()

func (*ApiConfig) ProtoReflect

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

func (*ApiConfig) Reset

func (x *ApiConfig) Reset()

func (*ApiConfig) String

func (x *ApiConfig) String() string

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 (*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 (*BooleanEntitlementOptions) ProtoMessage

func (*BooleanEntitlementOptions) ProtoMessage()

func (*BooleanEntitlementOptions) ProtoReflect

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.

func NewClient

func NewClient(addr string) (*Client, error)

Newclient should be used to initialize a new Sidecar API client.

func (*Client) Close

func (c *Client) Close() error

Close closes the connection to 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 (*EntitlementFallback) GetFallback

func (m *EntitlementFallback) GetFallback() isEntitlementFallback_Fallback

func (*EntitlementFallback) GetMetered

func (*EntitlementFallback) GetNumeric

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

func (EntitlementResetPeriod) EnumDescriptor deprecated

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

Deprecated: Use EntitlementResetPeriod.Descriptor instead.

func (EntitlementResetPeriod) Number

func (EntitlementResetPeriod) String

func (x EntitlementResetPeriod) String() string

func (EntitlementResetPeriod) Type

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetCustomerId

func (x *Event) GetCustomerId() string

func (*Event) GetDimensions

func (x *Event) GetDimensions() map[string]*EventDimensionValue

func (*Event) GetEventName

func (x *Event) GetEventName() string

func (*Event) GetIdempotencyKey

func (x *Event) GetIdempotencyKey() string

func (*Event) GetResourceId

func (x *Event) GetResourceId() string

func (*Event) GetTimestamp

func (x *Event) GetTimestamp() *timestamppb.Timestamp

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

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

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 (*GetBooleanEntitlementRequest) GetResourceId

func (x *GetBooleanEntitlementRequest) GetResourceId() string

func (*GetBooleanEntitlementRequest) ProtoMessage

func (*GetBooleanEntitlementRequest) ProtoMessage()

func (*GetBooleanEntitlementRequest) ProtoReflect

func (*GetBooleanEntitlementRequest) Reset

func (x *GetBooleanEntitlementRequest) Reset()

func (*GetBooleanEntitlementRequest) 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 (*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 (*GetBooleanEntitlementResponse) Reset

func (x *GetBooleanEntitlementResponse) Reset()

func (*GetBooleanEntitlementResponse) 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 (*GetMeteredEntitlementRequest) GetResourceId

func (x *GetMeteredEntitlementRequest) GetResourceId() string

func (*GetMeteredEntitlementRequest) ProtoMessage

func (*GetMeteredEntitlementRequest) ProtoMessage()

func (*GetMeteredEntitlementRequest) ProtoReflect

func (*GetMeteredEntitlementRequest) Reset

func (x *GetMeteredEntitlementRequest) Reset()

func (*GetMeteredEntitlementRequest) 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 (*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 (*GetMeteredEntitlementResponse) Reset

func (x *GetMeteredEntitlementResponse) Reset()

func (*GetMeteredEntitlementResponse) 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 (*GetNumericEntitlementRequest) GetResourceId

func (x *GetNumericEntitlementRequest) GetResourceId() string

func (*GetNumericEntitlementRequest) ProtoMessage

func (*GetNumericEntitlementRequest) ProtoMessage()

func (*GetNumericEntitlementRequest) ProtoReflect

func (*GetNumericEntitlementRequest) Reset

func (x *GetNumericEntitlementRequest) Reset()

func (*GetNumericEntitlementRequest) 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 (*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 (*GetNumericEntitlementResponse) Reset

func (x *GetNumericEntitlementResponse) Reset()

func (*GetNumericEntitlementResponse) 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
const (
	MeterType_METER_TYPE_UNSPECIFIED MeterType = 0
	MeterType_METER_TYPE_NONE        MeterType = 1
	MeterType_METER_TYPE_FLUCTUATING MeterType = 2
	MeterType_METER_TYPE_INCREMENTAL MeterType = 3
)

func (MeterType) Descriptor

func (MeterType) Descriptor() protoreflect.EnumDescriptor

func (MeterType) Enum

func (x MeterType) Enum() *MeterType

func (MeterType) EnumDescriptor deprecated

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

Deprecated: Use MeterType.Descriptor instead.

func (MeterType) Number

func (x MeterType) Number() protoreflect.EnumNumber

func (MeterType) String

func (x MeterType) String() string

func (MeterType) Type

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 (*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 (*MeteredEntitlementOptions) GetRequestedUsage

func (x *MeteredEntitlementOptions) GetRequestedUsage() float64

func (*MeteredEntitlementOptions) ProtoMessage

func (*MeteredEntitlementOptions) ProtoMessage()

func (*MeteredEntitlementOptions) ProtoReflect

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 (*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 (*NumericEntitlementOptions) ProtoMessage

func (*NumericEntitlementOptions) ProtoMessage()

func (*NumericEntitlementOptions) ProtoReflect

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 (*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 (*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.

type SidecarServiceServer

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

func (UnimplementedSidecarServiceServer) ReloadEntitlements

func (UnimplementedSidecarServiceServer) ReportEvents

func (UnimplementedSidecarServiceServer) ReportUsage

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

func (UsageUpdateBehavior) EnumDescriptor deprecated

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

Deprecated: Use UsageUpdateBehavior.Descriptor instead.

func (UsageUpdateBehavior) Number

func (UsageUpdateBehavior) String

func (x UsageUpdateBehavior) String() string

func (UsageUpdateBehavior) Type

Directories

Path Synopsis
example module

Jump to

Keyboard shortcuts

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