Categorygithub.com/gochain-io/netstats
modulepackage
0.0.0-20250107181159-50838bd38172
Repository: https://github.com/gochain-io/netstats.git
Documentation: pkg.go.dev

# README

GoStats - GoChain Network Stats Dashboard

This is a visual interface for tracking GoChain network status. It uses WebSockets to receive stats from running nodes and output them through an angular interface.

Screenshot

Prequisites

  • Docker

Run

Just run this:

export WS_SECRET=YOURSECRET
WS_SECRET=YOOOOO make run

Then browse to: http://localhost:3000

Running outside Docker

Prerequisite

  • node
  • npm

Installation

Make sure you have node.js and npm installed.

Clone the repository and install the dependencies

git clone https://github.com/gochain-io/netstats
cd netstats
npm install
sudo npm install -g grunt-cli

Build the resources

NetStats features two versions: the full version and the lite version. In order to build the static files you have to run grunt tasks which will generate dist or dist-lite directories containing the js and css files, fonts and images.

To build the full version run

grunt

To build the lite version run

grunt lite

If you want to build both versions run

grunt all

##Run

npm start

see the interface at http://localhost:3000

# Packages

No description provided by the author
No description provided by the author

# Functions

CompareBlocks compares two blocks by difficulty, number, & gas used.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewHandler returns a new instance of Handler.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
Histogram constants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
ErrIPNotFound is returned by GeoService.GeoByIP if an IP address is not found.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Conn is a websocket connection with an attached mutex.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This data is reported by the node and forwarded to clients, but the Name may be modified for trusted nodes.
No description provided by the author
No description provided by the author
NopGeoService is a GeoService that does nothing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

GeoService represents a service for computing geolocation by IP address.

# Type aliases

No description provided by the author