Documentation
¶
Index ¶
- Variables
- type OperationCategory
- func (OperationCategory) Descriptor() protoreflect.EnumDescriptor
- func (x OperationCategory) Enum() *OperationCategory
- func (OperationCategory) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationCategory) Number() protoreflect.EnumNumber
- func (x OperationCategory) String() string
- func (OperationCategory) Type() protoreflect.EnumType
- type OperationType
- func (OperationType) Descriptor() protoreflect.EnumDescriptor
- func (x OperationType) Enum() *OperationType
- func (OperationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationType) Number() protoreflect.EnumNumber
- func (x OperationType) String() string
- func (OperationType) Type() protoreflect.EnumType
- type Spec
- func (*Spec) Descriptor() ([]byte, []int)deprecated
- func (x *Spec) GetOperationCategory() OperationCategory
- func (x *Spec) GetOperationType() OperationType
- func (msg *Spec) MarshalBinary() ([]byte, error)
- func (*Spec) ProtoMessage()
- func (x *Spec) ProtoReflect() protoreflect.Message
- func (x *Spec) Reset()
- func (x *Spec) String() string
- func (msg *Spec) UnmarshalBinary(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OperationType_name = map[int32]string{ 0: "OPERATION_TYPE_UNSPECIFIED", 1: "OPERATION_TYPE_EXEMPT", 2: "OPERATION_TYPE_READ", 3: "OPERATION_TYPE_WRITE", } OperationType_value = map[string]int32{ "OPERATION_TYPE_UNSPECIFIED": 0, "OPERATION_TYPE_EXEMPT": 1, "OPERATION_TYPE_READ": 2, "OPERATION_TYPE_WRITE": 3, } )
Enum value maps for OperationType.
View Source
var ( OperationCategory_name = map[int32]string{ 0: "OPERATION_CATEGORY_UNSPECIFIED", 1: "OPERATION_CATEGORY_ACL", 2: "OPERATION_CATEGORY_PEER_STREAM", 3: "OPERATION_CATEGORY_CONNECT_CA", 4: "OPERATION_CATEGORY_PARTITION", 5: "OPERATION_CATEGORY_PEERING", 6: "OPERATION_CATEGORY_SERVER_DISCOVERY", 7: "OPERATION_CATEGORY_DATAPLANE", 8: "OPERATION_CATEGORY_DNS", 9: "OPERATION_CATEGORY_SUBSCRIBE", 10: "OPERATION_CATEGORY_OPERATOR", 11: "OPERATION_CATEGORY_RESOURCE", } OperationCategory_value = map[string]int32{ "OPERATION_CATEGORY_UNSPECIFIED": 0, "OPERATION_CATEGORY_ACL": 1, "OPERATION_CATEGORY_PEER_STREAM": 2, "OPERATION_CATEGORY_CONNECT_CA": 3, "OPERATION_CATEGORY_PARTITION": 4, "OPERATION_CATEGORY_PEERING": 5, "OPERATION_CATEGORY_SERVER_DISCOVERY": 6, "OPERATION_CATEGORY_DATAPLANE": 7, "OPERATION_CATEGORY_DNS": 8, "OPERATION_CATEGORY_SUBSCRIBE": 9, "OPERATION_CATEGORY_OPERATOR": 10, "OPERATION_CATEGORY_RESOURCE": 11, } )
Enum value maps for OperationCategory.
View Source
var (
// optional hashicorp.consul.internal.ratelimit.Spec spec = 8300;
E_Spec = &file_annotations_ratelimit_ratelimit_proto_extTypes[0]
)
Extension fields to descriptorpb.MethodOptions.
View Source
var File_annotations_ratelimit_ratelimit_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type OperationCategory ¶
type OperationCategory int32
const ( OperationCategory_OPERATION_CATEGORY_UNSPECIFIED OperationCategory = 0 OperationCategory_OPERATION_CATEGORY_ACL OperationCategory = 1 OperationCategory_OPERATION_CATEGORY_PEER_STREAM OperationCategory = 2 OperationCategory_OPERATION_CATEGORY_CONNECT_CA OperationCategory = 3 OperationCategory_OPERATION_CATEGORY_PARTITION OperationCategory = 4 OperationCategory_OPERATION_CATEGORY_PEERING OperationCategory = 5 OperationCategory_OPERATION_CATEGORY_SERVER_DISCOVERY OperationCategory = 6 OperationCategory_OPERATION_CATEGORY_DATAPLANE OperationCategory = 7 OperationCategory_OPERATION_CATEGORY_DNS OperationCategory = 8 OperationCategory_OPERATION_CATEGORY_SUBSCRIBE OperationCategory = 9 OperationCategory_OPERATION_CATEGORY_OPERATOR OperationCategory = 10 OperationCategory_OPERATION_CATEGORY_RESOURCE OperationCategory = 11 )
func (OperationCategory) Descriptor ¶
func (OperationCategory) Descriptor() protoreflect.EnumDescriptor
func (OperationCategory) Enum ¶
func (x OperationCategory) Enum() *OperationCategory
func (OperationCategory) EnumDescriptor
deprecated
func (OperationCategory) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationCategory.Descriptor instead.
func (OperationCategory) Number ¶
func (x OperationCategory) Number() protoreflect.EnumNumber
func (OperationCategory) String ¶
func (x OperationCategory) String() string
func (OperationCategory) Type ¶
func (OperationCategory) Type() protoreflect.EnumType
type OperationType ¶
type OperationType int32
OperationType determines the kind of rate limit that will be applied to this RPC (i.e. read or write).
const ( OperationType_OPERATION_TYPE_UNSPECIFIED OperationType = 0 OperationType_OPERATION_TYPE_EXEMPT OperationType = 1 OperationType_OPERATION_TYPE_READ OperationType = 2 OperationType_OPERATION_TYPE_WRITE OperationType = 3 )
func (OperationType) Descriptor ¶
func (OperationType) Descriptor() protoreflect.EnumDescriptor
func (OperationType) Enum ¶
func (x OperationType) Enum() *OperationType
func (OperationType) EnumDescriptor
deprecated
func (OperationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationType.Descriptor instead.
func (OperationType) Number ¶
func (x OperationType) Number() protoreflect.EnumNumber
func (OperationType) String ¶
func (x OperationType) String() string
func (OperationType) Type ¶
func (OperationType) Type() protoreflect.EnumType
type Spec ¶
type Spec struct { OperationType OperationType `` /* 156-byte string literal not displayed */ OperationCategory OperationCategory `` /* 172-byte string literal not displayed */ // contains filtered or unexported fields }
Spec describes the kind of rate limit that will be applied to this RPC.
func (*Spec) Descriptor
deprecated
func (*Spec) GetOperationCategory ¶
func (x *Spec) GetOperationCategory() OperationCategory
func (*Spec) GetOperationType ¶
func (x *Spec) GetOperationType() OperationType
func (*Spec) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler
func (*Spec) ProtoMessage ¶
func (*Spec) ProtoMessage()
func (*Spec) ProtoReflect ¶
func (x *Spec) ProtoReflect() protoreflect.Message
func (*Spec) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
Click to show internal directories.
Click to hide internal directories.