config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Default_RPCMeterConfig_IncomePerSecond uint32 = 1
View Source
const Default_RPCMeterConfig_StartupPeriod float32 = 0
View Source
const Default_RPCMethodConfig_FixedCallCost uint32 = 1
View Source
const Default_RPCMethodConfig_FixedPacketSize uint32 = 0
View Source
const Default_RPCMethodConfig_IncomePerSecond float32 = 0
View Source
const Default_RPCMethodConfig_Multiplier float32 = 1
View Source
const Default_RPCMethodConfig_VariableMultiplier float32 = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtocolAlias

type ProtocolAlias struct {
	ServerServiceName    *string  `protobuf:"bytes,1,req,name=server_service_name,json=serverServiceName" json:"server_service_name,omitempty"`
	ClientServiceName    *string  `protobuf:"bytes,2,req,name=client_service_name,json=clientServiceName" json:"client_service_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ProtocolAlias) Descriptor

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

func (*ProtocolAlias) GetClientServiceName

func (m *ProtocolAlias) GetClientServiceName() string

func (*ProtocolAlias) GetServerServiceName

func (m *ProtocolAlias) GetServerServiceName() string

func (*ProtocolAlias) ProtoMessage

func (*ProtocolAlias) ProtoMessage()

func (*ProtocolAlias) Reset

func (m *ProtocolAlias) Reset()

func (*ProtocolAlias) String

func (m *ProtocolAlias) String() string

func (*ProtocolAlias) XXX_DiscardUnknown

func (m *ProtocolAlias) XXX_DiscardUnknown()

func (*ProtocolAlias) XXX_Marshal

func (m *ProtocolAlias) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProtocolAlias) XXX_Merge

func (m *ProtocolAlias) XXX_Merge(src proto.Message)

func (*ProtocolAlias) XXX_Size

func (m *ProtocolAlias) XXX_Size() int

func (*ProtocolAlias) XXX_Unmarshal

func (m *ProtocolAlias) XXX_Unmarshal(b []byte) error

type RPCMeterConfig

type RPCMeterConfig struct {
	Method               []*RPCMethodConfig `protobuf:"bytes,1,rep,name=method" json:"method,omitempty"`
	IncomePerSecond      *uint32            `protobuf:"varint,2,opt,name=income_per_second,json=incomePerSecond,def=1" json:"income_per_second,omitempty"`
	InitialBalance       *uint32            `protobuf:"varint,3,opt,name=initial_balance,json=initialBalance" json:"initial_balance,omitempty"`
	CapBalance           *uint32            `protobuf:"varint,4,opt,name=cap_balance,json=capBalance" json:"cap_balance,omitempty"`
	StartupPeriod        *float32           `protobuf:"fixed32,5,opt,name=startup_period,json=startupPeriod,def=0" json:"startup_period,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*RPCMeterConfig) Descriptor

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

func (*RPCMeterConfig) GetCapBalance

func (m *RPCMeterConfig) GetCapBalance() uint32

func (*RPCMeterConfig) GetIncomePerSecond

func (m *RPCMeterConfig) GetIncomePerSecond() uint32

func (*RPCMeterConfig) GetInitialBalance

func (m *RPCMeterConfig) GetInitialBalance() uint32

func (*RPCMeterConfig) GetMethod

func (m *RPCMeterConfig) GetMethod() []*RPCMethodConfig

func (*RPCMeterConfig) GetStartupPeriod

func (m *RPCMeterConfig) GetStartupPeriod() float32

func (*RPCMeterConfig) ProtoMessage

func (*RPCMeterConfig) ProtoMessage()

func (*RPCMeterConfig) Reset

func (m *RPCMeterConfig) Reset()

func (*RPCMeterConfig) String

func (m *RPCMeterConfig) String() string

func (*RPCMeterConfig) XXX_DiscardUnknown

func (m *RPCMeterConfig) XXX_DiscardUnknown()

func (*RPCMeterConfig) XXX_Marshal

func (m *RPCMeterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RPCMeterConfig) XXX_Merge

func (m *RPCMeterConfig) XXX_Merge(src proto.Message)

func (*RPCMeterConfig) XXX_Size

func (m *RPCMeterConfig) XXX_Size() int

func (*RPCMeterConfig) XXX_Unmarshal

func (m *RPCMeterConfig) XXX_Unmarshal(b []byte) error

type RPCMethodConfig

type RPCMethodConfig struct {
	ServiceName          *string  `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` // Deprecated: Do not use.
	MethodName           *string  `protobuf:"bytes,2,opt,name=method_name,json=methodName" json:"method_name,omitempty"`    // Deprecated: Do not use.
	FixedCallCost        *uint32  `protobuf:"varint,3,opt,name=fixed_call_cost,json=fixedCallCost,def=1" json:"fixed_call_cost,omitempty"`
	FixedPacketSize      *uint32  `protobuf:"varint,4,opt,name=fixed_packet_size,json=fixedPacketSize,def=0" json:"fixed_packet_size,omitempty"`
	VariableMultiplier   *float32 `protobuf:"fixed32,5,opt,name=variable_multiplier,json=variableMultiplier,def=0" json:"variable_multiplier,omitempty"`
	Multiplier           *float32 `protobuf:"fixed32,6,opt,name=multiplier,def=1" json:"multiplier,omitempty"`
	RateLimitCount       *uint32  `protobuf:"varint,7,opt,name=rate_limit_count,json=rateLimitCount" json:"rate_limit_count,omitempty"`
	RateLimitSeconds     *uint32  `protobuf:"varint,8,opt,name=rate_limit_seconds,json=rateLimitSeconds" json:"rate_limit_seconds,omitempty"`
	MaxPacketSize        *uint32  `protobuf:"varint,9,opt,name=max_packet_size,json=maxPacketSize" json:"max_packet_size,omitempty"`
	MaxEncodedSize       *uint32  `protobuf:"varint,10,opt,name=max_encoded_size,json=maxEncodedSize" json:"max_encoded_size,omitempty"`
	Timeout              *float32 `protobuf:"fixed32,11,opt,name=timeout" json:"timeout,omitempty"`
	CapBalance           *uint32  `protobuf:"varint,12,opt,name=cap_balance,json=capBalance" json:"cap_balance,omitempty"`
	IncomePerSecond      *float32 `protobuf:"fixed32,13,opt,name=income_per_second,json=incomePerSecond,def=0" json:"income_per_second,omitempty"`
	ServiceHash          *uint32  `protobuf:"varint,14,opt,name=service_hash,json=serviceHash" json:"service_hash,omitempty"`
	MethodId             *uint32  `protobuf:"varint,15,opt,name=method_id,json=methodId" json:"method_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RPCMethodConfig) Descriptor

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

func (*RPCMethodConfig) GetCapBalance

func (m *RPCMethodConfig) GetCapBalance() uint32

func (*RPCMethodConfig) GetFixedCallCost

func (m *RPCMethodConfig) GetFixedCallCost() uint32

func (*RPCMethodConfig) GetFixedPacketSize

func (m *RPCMethodConfig) GetFixedPacketSize() uint32

func (*RPCMethodConfig) GetIncomePerSecond

func (m *RPCMethodConfig) GetIncomePerSecond() float32

func (*RPCMethodConfig) GetMaxEncodedSize

func (m *RPCMethodConfig) GetMaxEncodedSize() uint32

func (*RPCMethodConfig) GetMaxPacketSize

func (m *RPCMethodConfig) GetMaxPacketSize() uint32

func (*RPCMethodConfig) GetMethodId

func (m *RPCMethodConfig) GetMethodId() uint32

func (*RPCMethodConfig) GetMethodName deprecated

func (m *RPCMethodConfig) GetMethodName() string

Deprecated: Do not use.

func (*RPCMethodConfig) GetMultiplier

func (m *RPCMethodConfig) GetMultiplier() float32

func (*RPCMethodConfig) GetRateLimitCount

func (m *RPCMethodConfig) GetRateLimitCount() uint32

func (*RPCMethodConfig) GetRateLimitSeconds

func (m *RPCMethodConfig) GetRateLimitSeconds() uint32

func (*RPCMethodConfig) GetServiceHash

func (m *RPCMethodConfig) GetServiceHash() uint32

func (*RPCMethodConfig) GetServiceName deprecated

func (m *RPCMethodConfig) GetServiceName() string

Deprecated: Do not use.

func (*RPCMethodConfig) GetTimeout

func (m *RPCMethodConfig) GetTimeout() float32

func (*RPCMethodConfig) GetVariableMultiplier

func (m *RPCMethodConfig) GetVariableMultiplier() float32

func (*RPCMethodConfig) ProtoMessage

func (*RPCMethodConfig) ProtoMessage()

func (*RPCMethodConfig) Reset

func (m *RPCMethodConfig) Reset()

func (*RPCMethodConfig) String

func (m *RPCMethodConfig) String() string

func (*RPCMethodConfig) XXX_DiscardUnknown

func (m *RPCMethodConfig) XXX_DiscardUnknown()

func (*RPCMethodConfig) XXX_Marshal

func (m *RPCMethodConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RPCMethodConfig) XXX_Merge

func (m *RPCMethodConfig) XXX_Merge(src proto.Message)

func (*RPCMethodConfig) XXX_Size

func (m *RPCMethodConfig) XXX_Size() int

func (*RPCMethodConfig) XXX_Unmarshal

func (m *RPCMethodConfig) XXX_Unmarshal(b []byte) error

type ServiceAliases

type ServiceAliases struct {
	ProtocolAlias        []*ProtocolAlias `protobuf:"bytes,1,rep,name=protocol_alias,json=protocolAlias" json:"protocol_alias,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*ServiceAliases) Descriptor

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

func (*ServiceAliases) GetProtocolAlias

func (m *ServiceAliases) GetProtocolAlias() []*ProtocolAlias

func (*ServiceAliases) ProtoMessage

func (*ServiceAliases) ProtoMessage()

func (*ServiceAliases) Reset

func (m *ServiceAliases) Reset()

func (*ServiceAliases) String

func (m *ServiceAliases) String() string

func (*ServiceAliases) XXX_DiscardUnknown

func (m *ServiceAliases) XXX_DiscardUnknown()

func (*ServiceAliases) XXX_Marshal

func (m *ServiceAliases) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceAliases) XXX_Merge

func (m *ServiceAliases) XXX_Merge(src proto.Message)

func (*ServiceAliases) XXX_Size

func (m *ServiceAliases) XXX_Size() int

func (*ServiceAliases) XXX_Unmarshal

func (m *ServiceAliases) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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