module

package
v0.2.26 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(path string, fs afero.Fs, w io.Writer, modules []Module)

Execute runs modules over path specified

Types

type Context

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

Context defines modules context

func NewContext

func NewContext() *Context

NewContext create new module's context that needed to create new modules

type Module

type Module interface {
	// contains filtered or unexported methods
}

Module defines working modules interface

func NewExtensionHiddenModule

func NewExtensionHiddenModule(ctx *Context) Module

NewExtensionHiddenModule creates new file extensions statistic module that has disabled output

func NewExtensionModule

func NewExtensionModule(ctx *Context) Module

NewExtensionModule creates new file extensions statistic module

func NewFoldersHiddenModule

func NewFoldersHiddenModule(ctx *Context) Module

NewFoldersHiddenModule creates new folders module that has disabled output

func NewFoldersModule

func NewFoldersModule(ctx *Context) Module

NewFoldersModule creates new folders module

func NewRangeHiddenModule

func NewRangeHiddenModule(ctx *Context) Module

NewRangeHiddenModule creates new file statistic by file size range module that has disabled output

func NewRangeModule

func NewRangeModule(ctx *Context, verbose bool, enabledRanges []int) Module

NewRangeModule creates new file statistic by file size range module

func NewTopFilesHiddenModule

func NewTopFilesHiddenModule(_ *Context) Module

NewTopFilesHiddenModule creates new top files statistic module that has disabled output

func NewTopFilesModule

func NewTopFilesModule(_ *Context) Module

NewTopFilesModule creates new top files statistic module

func NewTotalFileModule

func NewTotalFileModule(ctx *Context) Module

NewTotalFileModule creates new total file statistic module

func NewTotalModule

func NewTotalModule(ctx *Context) Module

NewTotalModule creates new total statistic module

type Range

type Range struct {
	// Min value
	Min int64

	// Max value
	Max int64
}

Range defined integer value range

func (Range) Contains

func (r Range) Contains(num int64) bool

Contains defines whether the number specified within range

Directories

Path Synopsis
internal
sys

Jump to

Keyboard shortcuts

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