config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 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

func (d MockDynamicConfig) GetCommitGapHeight() int64

func (MockDynamicConfig) GetIavlCacheSize

func (d MockDynamicConfig) GetIavlCacheSize() int

func (MockDynamicConfig) GetIavlFSCacheSize

func (d MockDynamicConfig) GetIavlFSCacheSize() int64

func (MockDynamicConfig) SetCommitGapHeight

func (d MockDynamicConfig) SetCommitGapHeight(gap int64)

Jump to

Keyboard shortcuts

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