factory

package
v1.0.82 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const PeerAccountTrie = "peerAccount"

Peer account main trie identifier

View Source
const UserAccountTrie = "userAccount"

User account main trie identifier

Variables

This section is empty.

Functions

func NewTrieFactory

func NewTrieFactory(
	args TrieFactoryArgs,
) (*trieCreator, error)

NewTrieFactory creates a new trie factory

Types

type TrieFactoryArgs

type TrieFactoryArgs struct {
	Cfg                    config.StorageConfig
	EvictionWaitingListCfg config.EvictionWaitingListConfig
	SnapshotDbCfg          config.DBConfig
	Marshalizer            marshal.Marshalizer
	Hasher                 hashing.Hasher
	PathManager            storage.PathManagerHandler
	ShardId                string
	PruningEnabled         bool
}

TrieFactoryArgs holds arguments for creating a trie factory

Jump to

Keyboard shortcuts

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