Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuntimeConfig ¶
type RuntimeConfig struct {
RuntimeRateConfig
}
type RuntimeConfigStore ¶
type RuntimeConfigStore struct { // guards the db sync.Mutex // contains filtered or unexported fields }
func NewRuntimeConfigStore ¶
func NewRuntimeConfigStore(stableStore stablestore.StableStore) *RuntimeConfigStore
func (*RuntimeConfigStore) GetOrCreateRuntimeConfig ¶
func (r *RuntimeConfigStore) GetOrCreateRuntimeConfig() *RuntimeConfig
func (*RuntimeConfigStore) UpdateRuntimeConfig ¶
func (r *RuntimeConfigStore) UpdateRuntimeConfig(update *RuntimeConfig)
type RuntimeRateConfig ¶
type RuntimeRateConfig struct { // enable or disable rate quota IsEnableRateQuota bool // per second WriteRequestRate int // per second WriteByteRate int // means date read from hard disk, per second CatchupReadRequestRate int // means date read from hard disk, per second CatchupReadByteRate int // means date read from memory, per second EndReadRequestRate int // means date read from memory, per second EndReadByteRate int }
Click to show internal directories.
Click to hide internal directories.