runtimeconfig

package
v0.0.0-...-16dfdc2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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