stats

package
v0.10.14 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2014 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceStatistics added in v0.10.0

type DeviceStatistics struct {
	LastSeen time.Time
}

type DeviceStatisticsReference added in v0.10.0

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

func NewDeviceStatisticsReference added in v0.10.0

func NewDeviceStatisticsReference(db *leveldb.DB, device protocol.DeviceID) *DeviceStatisticsReference

func (*DeviceStatisticsReference) Delete added in v0.10.0

func (s *DeviceStatisticsReference) Delete() error

Never called, maybe because it's worth while to keep the data or maybe because we have no easy way of knowing that a device has been removed.

func (*DeviceStatisticsReference) GetLastSeen added in v0.10.0

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

func (*DeviceStatisticsReference) GetStatistics added in v0.10.0

func (s *DeviceStatisticsReference) GetStatistics() DeviceStatistics

func (*DeviceStatisticsReference) WasSeen added in v0.10.0

func (s *DeviceStatisticsReference) WasSeen()

type FolderStatistics added in v0.10.12

type FolderStatistics struct {
	LastFile *LastFile
}

type FolderStatisticsReference added in v0.10.12

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

func NewFolderStatisticsReference added in v0.10.12

func NewFolderStatisticsReference(db *leveldb.DB, folder string) *FolderStatisticsReference

func (*FolderStatisticsReference) Delete added in v0.10.12

func (s *FolderStatisticsReference) Delete() error

Never called, maybe because it's worth while to keep the data or maybe because we have no easy way of knowing that a folder has been removed.

func (*FolderStatisticsReference) GetLastFile added in v0.10.12

func (s *FolderStatisticsReference) GetLastFile() *LastFile

func (*FolderStatisticsReference) GetStatistics added in v0.10.12

func (s *FolderStatisticsReference) GetStatistics() FolderStatistics

func (*FolderStatisticsReference) ReceivedFile added in v0.10.12

func (s *FolderStatisticsReference) ReceivedFile(filename string)

type LastFile added in v0.10.12

type LastFile struct {
	At       time.Time
	Filename string
}

func (*LastFile) MarshalBinary added in v0.10.12

func (f *LastFile) MarshalBinary() ([]byte, error)

func (*LastFile) UnmarshalBinary added in v0.10.12

func (f *LastFile) UnmarshalBinary(buf []byte) error

Jump to

Keyboard shortcuts

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