go-plh

command module
v0.0.0-...-91ea1b2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: GPL-3.0 Imports: 26 Imported by: 0

README

Signal Cartel's Little Helper

Purpose

This is a utility for Eve Online, it looks up a list of characters and presents threat data. I have been a user of Pirate's Little Helper for awhile and this is intended to replace that service for the Eve corporation, Signal Cartel.

Requirements

The server code is written in Go. The client side code is Javascript with DataTables. The information is pulled from CCP using the ESI interface and zkillboard using their API.

Imports

  1. go-cache
$ go get github.com/patrickmn/go-cache
  1. mergo
$ go get -u github.com/imdario/mergo
  1. logrus
 $ go get -u github.com/sirupsen/logrus

Running locally

Quick steps to build and run the server locally:

  • Run directly (recommended for development):
# run with local mode (no TLS) and specify port
go run . -local -port 8443 -debug
  • Build a binary and run it:
go build -o go-plh .
./go-plh -local -port 8080
  • Useful flags:
    • -local : run without TLS (binds to :8443 by default when set)
    • -port : port to listen on (default 80)
    • -debug : enable debug logging to stdout
    • -kills : enable extra kill analysis (slower)

Testing

  • Run the Go unit tests:
go test ./... -v
# include the race detector when appropriate
go test -race ./... -v
  • Run specific tests:
go test ./... -run TestFetchKillHistory -v

Formatting & Linting (JavaScript)

This repository includes ESLint and Prettier configs for the client-side code under static/.

  • Install Node dev dependencies:
npm ci
  • Format JavaScript files with Prettier:
npm run format
  • Lint and auto-fix (if possible):
npm run lint
  • CI check (what the GitHub Actions workflow runs):
npm run check

The CI workflow will run ESLint (strict, no auto-fix) and Prettier checks on push and pull requests for files under static/.

Installing on a Linux Host

Use the startup.sh script then restart.sh

References

  1. ZKillboard API
  2. CCP ESI API
  3. Pirate's Little Helper
  4. Javascript DataTables

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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