stats

package
v0.14.18 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2017 License: MPL-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceStatistics

type DeviceStatistics struct {
	LastSeen time.Time `json:"lastSeen"`
}

type DeviceStatisticsReference

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

func NewDeviceStatisticsReference

func NewDeviceStatisticsReference(ldb *db.Instance, device string) *DeviceStatisticsReference

func (*DeviceStatisticsReference) GetLastSeen

func (s *DeviceStatisticsReference) GetLastSeen() time.Time

func (*DeviceStatisticsReference) GetStatistics

func (s *DeviceStatisticsReference) GetStatistics() DeviceStatistics

func (*DeviceStatisticsReference) WasSeen

func (s *DeviceStatisticsReference) WasSeen()

type FolderStatistics

type FolderStatistics struct {
	LastFile LastFile  `json:"lastFile"`
	LastScan time.Time `json:"lastScan"`
}

type FolderStatisticsReference

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

func NewFolderStatisticsReference

func NewFolderStatisticsReference(ldb *db.Instance, folder string) *FolderStatisticsReference

func (*FolderStatisticsReference) GetLastFile

func (s *FolderStatisticsReference) GetLastFile() LastFile

func (*FolderStatisticsReference) GetLastScanTime added in v0.13.5

func (s *FolderStatisticsReference) GetLastScanTime() time.Time

func (*FolderStatisticsReference) GetStatistics

func (s *FolderStatisticsReference) GetStatistics() FolderStatistics

func (*FolderStatisticsReference) ReceivedFile

func (s *FolderStatisticsReference) ReceivedFile(file string, deleted bool)

func (*FolderStatisticsReference) ScanCompleted added in v0.13.5

func (s *FolderStatisticsReference) ScanCompleted()

type LastFile

type LastFile struct {
	At       time.Time `json:"at"`
	Filename string    `json:"filename"`
	Deleted  bool      `json:"deleted"`
}

Jump to

Keyboard shortcuts

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