fileWalkers

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareInMemoryStoreKey

func PrepareInMemoryStoreKey(path, method string) string

PrepareInMemoryStoreKey

Types

type DirWalk

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

func NewDirWalk

func NewDirWalk(rootDirPath string, lgr *logrus.Entry) *DirWalk

func (*DirWalk) SetRootDirPath

func (dw *DirWalk) SetRootDirPath(rootDirPath string)

SetRootPath

func (*DirWalk) Validate

func (dw *DirWalk) Validate() error

Validate is fields checker to validate values

func (*DirWalk) Walk

func (dw *DirWalk) Walk(router *urlrouter.Router) (map[string]IndexedData, error)

type DirWalker

type DirWalker interface {
	Walk() (map[string]string, error)
	validation.Validatable
}

DirWalker represents an interface to index and filter files inside particular dir

type IndexedData

type IndexedData struct {
	FilePath       string
	ScenarioNumber int
}

type ListIndexedData

type ListIndexedData []IndexedData

Jump to

Keyboard shortcuts

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