pathmanager

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyPruningPathTemplate = errors.New("empty path template for pruning storers")

ErrEmptyPruningPathTemplate signals that an empty path template for pruning storers has been provided

View Source
var ErrEmptyStaticPathTemplate = errors.New("empty path template for static storers")

ErrEmptyStaticPathTemplate signals that an empty path template for static storers has been provided

View Source
var ErrInvalidDatabasePath = errors.New("invalid database path")

ErrInvalidDatabasePath signals that an invalid database path has been provided

View Source
var ErrInvalidPruningPathTemplate = errors.New("invalid path template for pruning storers")

ErrInvalidPruningPathTemplate signals that an invalid path template for pruning storers has been provided

View Source
var ErrInvalidStaticPathTemplate = errors.New("invalid path template for static storers")

ErrInvalidStaticPathTemplate signals that an invalid path template for static storers has been provided

Functions

This section is empty.

Types

type PathManager

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

PathManager will handle creation of paths for storers

func NewPathManager

func NewPathManager(pruningPathTemplate string, staticPathTemplate string, databasePath string) (*PathManager, error)

NewPathManager will return a new instance of PathManager if the provided arguments are fine

func (*PathManager) DatabasePath

func (pm *PathManager) DatabasePath() string

DatabasePath returns the path for the databases directory

func (*PathManager) IsInterfaceNil

func (pm *PathManager) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*PathManager) PathForEpoch

func (pm *PathManager) PathForEpoch(shardId string, epoch uint32, identifier string) string

PathForEpoch will return the new path for a pruning storer

func (*PathManager) PathForStatic

func (pm *PathManager) PathForStatic(shardId string, identifier string) string

PathForStatic will return the path for a static storer

Jump to

Keyboard shortcuts

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