stats

package
v0.9.19 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2014 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeStatistics

type NodeStatistics struct {
	LastSeen time.Time
}

type NodeStatisticsReference

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

func NewNodeStatisticsReference

func NewNodeStatisticsReference(db *leveldb.DB, node protocol.NodeID) *NodeStatisticsReference

func (*NodeStatisticsReference) Delete

func (s *NodeStatisticsReference) 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 node has been removed.

func (*NodeStatisticsReference) GetLastSeen

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

func (*NodeStatisticsReference) GetStatistics

func (s *NodeStatisticsReference) GetStatistics() NodeStatistics

func (*NodeStatisticsReference) WasSeen

func (s *NodeStatisticsReference) WasSeen()

Jump to

Keyboard shortcuts

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