ratelimit

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

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",
		12: "OPERATION_CATEGORY_CONFIGENTRY",
	}
	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,
		"OPERATION_CATEGORY_CONFIGENTRY":      12,
	}
)

Enum value maps for OperationCategory.

View Source
var (
	RatelimitMarshaler   = &protojson.MarshalOptions{}
	RatelimitUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
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 added in v0.4.0

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
	OperationCategory_OPERATION_CATEGORY_CONFIGENTRY      OperationCategory = 12
)

func (OperationCategory) Descriptor added in v0.4.0

func (OperationCategory) Enum added in v0.4.0

func (OperationCategory) EnumDescriptor deprecated added in v0.4.0

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

Deprecated: Use OperationCategory.Descriptor instead.

func (OperationCategory) Number added in v0.4.0

func (OperationCategory) String added in v0.4.0

func (x OperationCategory) String() string

func (OperationCategory) Type added in v0.4.0

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) DeepCopy added in v0.5.1

func (in *Spec) DeepCopy() *Spec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec. Required by controller-gen.

func (*Spec) DeepCopyInterface added in v0.5.1

func (in *Spec) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Spec. Required by controller-gen.

func (*Spec) DeepCopyInto added in v0.5.1

func (in *Spec) DeepCopyInto(out *Spec)

DeepCopyInto supports using Spec within kubernetes types, where deepcopy-gen is used.

func (*Spec) Descriptor deprecated

func (*Spec) Descriptor() ([]byte, []int)

Deprecated: Use Spec.ProtoReflect.Descriptor instead.

func (*Spec) GetOperationCategory added in v0.4.0

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) MarshalJSON added in v0.5.1

func (this *Spec) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Spec

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

func (*Spec) UnmarshalJSON added in v0.5.1

func (this *Spec) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Spec

Jump to

Keyboard shortcuts

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