Documentation ¶
Index ¶
- Variables
- func CountryTotal() (m map[string]int)
- func FindFileFlag(dir string, file []string) (flag string)
- func InitLog(traceHandle io.Writer, infoHandle io.Writer, warningHandle io.Writer, ...)
- func MyWanIp() (lat float64, lon float64)
- func NodeInCSV(ipv4 string) (lat float64, lon float64, country string, have bool)
- func ParseNode(s []byte) (nodeInfo []geolocation.NodeInfo)
- func RunStandalone() (err error)
- func WorldNodes(flatmap *sm.Context, globemap *globe.Globe, url string, m *TTLMap) (key string)
- type Nodes
- type TTLMap
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CountryTotal ¶
CountryTotal - Returns a map with total number of nodes by country
func FindFileFlag ¶
FindFileFlag - Find the flag for each country
func InitLog ¶
func InitLog(traceHandle io.Writer, infoHandle io.Writer, warningHandle io.Writer, errorHandle io.Writer)
InitLog - Initialize package log.
func ParseNode ¶
func ParseNode(s []byte) (nodeInfo []geolocation.NodeInfo)
ParseNode - Parses a json provide by the bitmarkd node
func RunStandalone ¶
func RunStandalone() (err error)
RunStandalone - Runs the standalone go program to generate maps
Types ¶
type Nodes ¶
type Nodes struct { Address string Country string Lat float64 Lon float64 // contains filtered or unexported fields }
Nodes - This struct receives all info for each node
Click to show internal directories.
Click to hide internal directories.