swarmmonitor

package
v0.0.0-...-9191674 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMonitor

func RunMonitor(wg *sync.WaitGroup)

RunMonitor starts monitoring the swarm at a specific rate. Then writes data in a csv file

Types

type PeerInfo

type PeerInfo struct {
	Id        string
	Ip        string
	FirstSeen time.Time
	LastSeen  time.Time
	Updated   bool
	Location  string //Country Name
}

func (*PeerInfo) ToArray

func (i *PeerInfo) ToArray() []string

type SampleInfo

type SampleInfo struct {
	Timestamp   time.Time
	PeersNumber int
}

func (*SampleInfo) ToArray

func (i *SampleInfo) ToArray() []string

Jump to

Keyboard shortcuts

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