stats

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

type Stats struct {
	StartTime             time.Time
	TotalExtensions       int
	TotalExtensionsClosed int
	TotalExtensionsFailed int
	TotalFiles            int
	TotalSize             uint64
	// contains filtered or unexported fields
}

Stats holds stats on bulk processing

func New

func New() *Stats

New constructs and returns a Stats pointer

func (*Stats) GetTimeTaken

func (s *Stats) GetTimeTaken() time.Duration

func (*Stats) GetTotalExtensions

func (s *Stats) GetTotalExtensions() int

func (*Stats) GetTotalExtensionsClosed

func (s *Stats) GetTotalExtensionsClosed() int

func (*Stats) GetTotalExtensionsFailed

func (s *Stats) GetTotalExtensionsFailed() int

func (*Stats) GetTotalFiles

func (s *Stats) GetTotalFiles() int

func (*Stats) GetTotalSize

func (s *Stats) GetTotalSize() uint64

func (*Stats) IncreaseTotalSize

func (s *Stats) IncreaseTotalSize(size uint64)

func (*Stats) IncrementTotalExtensions

func (s *Stats) IncrementTotalExtensions()

func (*Stats) IncrementTotalExtensionsClosed

func (s *Stats) IncrementTotalExtensionsClosed()

func (*Stats) IncrementTotalExtensionsFailed

func (s *Stats) IncrementTotalExtensionsFailed()

func (*Stats) IncrementTotalFiles

func (s *Stats) IncrementTotalFiles()

Jump to

Keyboard shortcuts

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