pathmanager

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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) (*PathManager, error)

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

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