config

package
v1.7.0-browser Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0, Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCommitGapHeight = 100
)

Variables

This section is empty.

Functions

func SetDynamicConfig

func SetDynamicConfig(c IDynamicConfig)

Types

type IDynamicConfig

type IDynamicConfig interface {
	GetIavlCacheSize() int
	GetIavlFSCacheSize() int64
	GetCommitGapHeight() int64
	SetCommitGapHeight(gap int64)
}
var DynamicConfig IDynamicConfig = MockDynamicConfig{/* contains filtered or unexported fields */}

type MockDynamicConfig

type MockDynamicConfig struct {
	// contains filtered or unexported fields
}

func (MockDynamicConfig) GetCommitGapHeight added in v1.6.6

func (d MockDynamicConfig) GetCommitGapHeight() int64

func (MockDynamicConfig) GetIavlCacheSize

func (d MockDynamicConfig) GetIavlCacheSize() int

func (MockDynamicConfig) GetIavlFSCacheSize added in v1.6.6

func (d MockDynamicConfig) GetIavlFSCacheSize() int64

func (MockDynamicConfig) SetCommitGapHeight added in v1.6.6

func (d MockDynamicConfig) SetCommitGapHeight(gap int64)

Jump to

Keyboard shortcuts

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