iotex-election

command module
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

README

iotex-election

Collect and process election information from the governance chain (which is Ethereum for now)

Run as a service

  1. dep ensure --vendor-only
  2. rm election.db
  3. go build -o ./bin/server -v ./server
  4. ./bin/server

Tools

Dumper

Build
[foo@bar iotex-election]$  go build -ldflags "-extldflags=-Wl,--allow-multiple-definition" -x -o ./bin/dumper -v ./tools/dumper
Dump votes to csv
[foo@bar iotex-election]$ ./bin/dumper > stats.csv
Run from source
[foo@bar iotex-election]$ go run -ldflags "-extldflags=-Wl,--allow-multiple-definition" tools/dumper/dumper.go > stats.csv

Processor

Build
[foo@bar iotex-election]$ go build -o ./bin/processor -v ./tools/processor
Process votes
[foo@bar iotex-election]$ ./bin/processor
Run from source
[foo@bar iotex-election]$ go run tools/processor/processor.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
client
pb
api
test
mock/mock_apiserviceclient
Package mock_apiserviceclient is a generated GoMock package.
Package mock_apiserviceclient is a generated GoMock package.
mock/mock_committee
Package mock_committee is a generated GoMock package.
Package mock_committee is a generated GoMock package.

Jump to

Keyboard shortcuts

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