Skip to content
Gets top stations for trading in New Eden
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
Dockerfile
LICENSE
README.md
generateProto.sh
main.go

README.md

Top Stations

Build Status Docker Image

This service for Element43 serves a list of top stations by market volume, based on data gathered from esi-markets. The statistics are updated hourly and persisted to disk using BoltDB.

Issues can be filed here. Pull requests can be made in this repo.

Interface

The service's gRPC description can be found here.

Installation

Either use the prebuilt Docker images and pass the appropriate env vars (see below), or:

  • Install Go, clone this repo into your gopath
  • Get and run esi-markets
  • Set the ESI_MARKETS_HOST environment variable (see below)
  • Run go get ./... to fetch the service's dependencies
  • Run bash generateProto.sh to generate the necessary gRPC-related code
  • Run go build to build the service
  • Run ./top-stations to start the service

Now a gRPC server will listen on port 43000 unless configured otherwise, serving stats data once it has been generated.

Deployment Info

Environment Variable Default Description
CRON @hourly Stats refresh interval
DB_PATH /data/top-stations.db DB persistence path
LOG_LEVEL info The service's log level
ESI_MARKETS_HOST esi-markets.element43.svc.cluster.local:43000 Host/port of the esi-markets instance to be used
PORT 43000 Port the gRPC server will listen on
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.