sm_gpa

package
v0.7.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type StateManagerParameters

type StateManagerParameters struct {
	// How many blocks may be stored in cache before old ones start being deleted
	BlockCacheMaxSize int
	// How long should the block stay in block cache before being deleted
	BlockCacheBlocksInCacheDuration time.Duration
	// How often should the block cache be cleaned
	BlockCacheBlockCleaningPeriod time.Duration
	// How often get block requests should be repeated
	StateManagerGetBlockRetry time.Duration
	// How often requests waiting for response should be checked for expired context
	StateManagerRequestCleaningPeriod time.Duration
	// How often timer tick fires in state manager
	StateManagerTimerTickPeriod time.Duration
	// This number of states will always be available in the database
	PruningMinStatesToKeep int
	// On single store pruning attempt at most this number of states will be deleted
	PruningMaxStatesToDelete int

	TimeProvider sm_gpa_utils.TimeProvider
}

func NewStateManagerParameters

func NewStateManagerParameters(tpOpt ...sm_gpa_utils.TimeProvider) StateManagerParameters

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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