Documentation ¶
Index ¶
- func Execute(path string, fs afero.Fs, p out.Printer, modules ...Module)
- type Context
- type Module
- func NewAggregateFileModule(ctx *Context, order int) Module
- func NewBenfordFileModule(ctx *Context, order int) Module
- func NewDetailFileModule(ctx *Context, order int, enabledRanges []int) Module
- func NewExtensionModule(ctx *Context, order int) Module
- func NewFoldersModule(ctx *Context, order int) Module
- func NewTopFilesModule(ctx *Context, order int) Module
- func NewTotalModule(ctx *Context, order int) Module
- type Range
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context defines modules context
type Module ¶
type Module interface {
// contains filtered or unexported methods
}
Module defines working modules interface
func NewAggregateFileModule ¶
NewAggregateFileModule creates new total file statistic module
func NewBenfordFileModule ¶
NewBenfordFileModule creates new file size bendford statistic
func NewDetailFileModule ¶
NewDetailFileModule creates new file statistic by file size range module
func NewExtensionModule ¶
NewExtensionModule creates new file extensions statistic module
func NewFoldersModule ¶
NewFoldersModule creates new folders module
func NewTopFilesModule ¶
NewTopFilesModule creates new top files statistic module
func NewTotalModule ¶
NewTotalModule creates new total statistic module
type Range ¶
type Range struct { // Min value Min int64 // Max value Max int64 // contains filtered or unexported fields }
Range defined integer value range
func (*Range) Equal ¶ added in v1.0.0
func (r *Range) Equal(y rbtree.Comparable) bool
Equal gets whether value specified equal current value
func (*Range) Less ¶ added in v1.0.0
func (r *Range) Less(y rbtree.Comparable) bool
Less gets whether value specified less then current value
Click to show internal directories.
Click to hide internal directories.