stats

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2016 License: MPL-2.0 Imports: 5 Imported by: 0

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"`
}

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) GetStatistics

func (s *FolderStatisticsReference) GetStatistics() FolderStatistics

func (*FolderStatisticsReference) ReceivedFile

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

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