scorer

command
v0.0.0-...-fb119ec Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

README

Scorer

Saves game play results.

Requires the following environment variables to be set:

  • D5_DBHOST: mongodb hostname
  • D5_DBNAME: mongodb database name

CLI

Scorer provides a regular unix interface

Requires the following flags:

  • **coll {db collection name} **
  • **debug false ** (optional, false by default)
scorer --coll=german --data='{"wordId":"aabadih29a", "score": 10}'

Server

Finder also provides a server

Requires the following flags:

  • **coll {db collection name} **
  • **debug false ** (optional, false by default)
  • server true
  • **port {port number to listen to} ** (optional, 17171 by default)
scorer --coll=german --server=true --port=20202 --coll=german

Scores must be sent via POST with wordId and score form fields.

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