proto

package
v0.0.0-...-8a36686 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AffinityConfig_Command_name = map[int32]string{
		0: "BOUND",
		1: "BIND",
		2: "UNBIND",
	}
	AffinityConfig_Command_value = map[string]int32{
		"BOUND":  0,
		"BIND":   1,
		"UNBIND": 2,
	}
)

Enum value maps for AffinityConfig_Command.

View Source
var File_go_pkg_balancer_proto_grpcbalancer_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AffinityConfig

type AffinityConfig struct {
	Command     AffinityConfig_Command `protobuf:"varint,2,opt,name=command,proto3,enum=grpcbalancer.AffinityConfig_Command" json:"command,omitempty"`
	AffinityKey string                 `protobuf:"bytes,3,opt,name=affinity_key,json=affinityKey,proto3" json:"affinity_key,omitempty"`
	// contains filtered or unexported fields
}

func (*AffinityConfig) Descriptor deprecated

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

Deprecated: Use AffinityConfig.ProtoReflect.Descriptor instead.

func (*AffinityConfig) GetAffinityKey

func (x *AffinityConfig) GetAffinityKey() string

func (*AffinityConfig) GetCommand

func (x *AffinityConfig) GetCommand() AffinityConfig_Command

func (*AffinityConfig) ProtoMessage

func (*AffinityConfig) ProtoMessage()

func (*AffinityConfig) ProtoReflect

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

func (*AffinityConfig) Reset

func (x *AffinityConfig) Reset()

func (*AffinityConfig) String

func (x *AffinityConfig) String() string

type AffinityConfig_Command

type AffinityConfig_Command int32
const (
	AffinityConfig_BOUND  AffinityConfig_Command = 0
	AffinityConfig_BIND   AffinityConfig_Command = 1
	AffinityConfig_UNBIND AffinityConfig_Command = 2
)

func (AffinityConfig_Command) Descriptor

func (AffinityConfig_Command) Enum

func (AffinityConfig_Command) EnumDescriptor deprecated

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

Deprecated: Use AffinityConfig_Command.Descriptor instead.

func (AffinityConfig_Command) Number

func (AffinityConfig_Command) String

func (x AffinityConfig_Command) String() string

func (AffinityConfig_Command) Type

type ApiConfig

type ApiConfig struct {
	ChannelPool *ChannelPoolConfig `protobuf:"bytes,2,opt,name=channel_pool,json=channelPool,proto3" json:"channel_pool,omitempty"`
	Method      []*MethodConfig    `protobuf:"bytes,1001,rep,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*ApiConfig) Descriptor deprecated

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

Deprecated: Use ApiConfig.ProtoReflect.Descriptor instead.

func (*ApiConfig) GetChannelPool

func (x *ApiConfig) GetChannelPool() *ChannelPoolConfig

func (*ApiConfig) GetMethod

func (x *ApiConfig) GetMethod() []*MethodConfig

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 ChannelPoolConfig

type ChannelPoolConfig struct {
	MaxSize                          uint32 `protobuf:"varint,1,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
	IdleTimeout                      uint64 `protobuf:"varint,2,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
	MaxConcurrentStreamsLowWatermark uint32 `` /* 164-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ChannelPoolConfig) Descriptor deprecated

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

Deprecated: Use ChannelPoolConfig.ProtoReflect.Descriptor instead.

func (*ChannelPoolConfig) GetIdleTimeout

func (x *ChannelPoolConfig) GetIdleTimeout() uint64

func (*ChannelPoolConfig) GetMaxConcurrentStreamsLowWatermark

func (x *ChannelPoolConfig) GetMaxConcurrentStreamsLowWatermark() uint32

func (*ChannelPoolConfig) GetMaxSize

func (x *ChannelPoolConfig) GetMaxSize() uint32

func (*ChannelPoolConfig) ProtoMessage

func (*ChannelPoolConfig) ProtoMessage()

func (*ChannelPoolConfig) ProtoReflect

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

func (*ChannelPoolConfig) Reset

func (x *ChannelPoolConfig) Reset()

func (*ChannelPoolConfig) String

func (x *ChannelPoolConfig) String() string

type MethodConfig

type MethodConfig struct {
	Name     []string        `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"`
	Affinity *AffinityConfig `protobuf:"bytes,1001,opt,name=affinity,proto3" json:"affinity,omitempty"`
	// contains filtered or unexported fields
}

func (*MethodConfig) Descriptor deprecated

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

Deprecated: Use MethodConfig.ProtoReflect.Descriptor instead.

func (*MethodConfig) GetAffinity

func (x *MethodConfig) GetAffinity() *AffinityConfig

func (*MethodConfig) GetName

func (x *MethodConfig) GetName() []string

func (*MethodConfig) ProtoMessage

func (*MethodConfig) ProtoMessage()

func (*MethodConfig) ProtoReflect

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

func (*MethodConfig) Reset

func (x *MethodConfig) Reset()

func (*MethodConfig) String

func (x *MethodConfig) String() string

Jump to

Keyboard shortcuts

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