ratelimit

package
v0.4.0-rc1.0...-9dd6c97 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func (OperationCategory) EnumDescriptor deprecated

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

Deprecated: Use OperationCategory.Descriptor instead.

func (OperationCategory) Number

func (OperationCategory) String

func (x OperationCategory) String() string

func (OperationCategory) Type

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

func (x OperationType) Enum() *OperationType

func (OperationType) EnumDescriptor deprecated

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

Deprecated: Use OperationType.Descriptor instead.

func (OperationType) Number

func (OperationType) String

func (x OperationType) String() string

func (OperationType) Type

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

Deprecated: Use Spec.ProtoReflect.Descriptor instead.

func (*Spec) GetOperationCategory

func (x *Spec) GetOperationCategory() OperationCategory

func (*Spec) GetOperationType

func (x *Spec) GetOperationType() OperationType

func (*Spec) MarshalBinary

func (msg *Spec) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*Spec) ProtoMessage

func (*Spec) ProtoMessage()

func (*Spec) ProtoReflect

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

func (*Spec) Reset

func (x *Spec) Reset()

func (*Spec) String

func (x *Spec) String() string

func (*Spec) UnmarshalBinary

func (msg *Spec) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

Jump to

Keyboard shortcuts

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