selection

module
v0.0.0-...-1858a95 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: GPL-3.0

README

Selection

Side hiring process test

CircleCI

Installation

OS X & Linux & Windows:

go get -u github.com/elojah/selection

Usage example

> docker-compose up # start containers
> make import # import test data into mongo
> curl -k X GET https://127.0.0.1:8080/task/scores?id=0E8dlOR1tqfg31jIR

API

/user #all users
/user?ids=eLCbLZMwPrWM24fZ9,fZueTmkoyeeM8hfgS #users by id
/task #all tasks
/task?ids=0R7p5AZpxMmffUU7k,0E8dlOR1tqfg31jIR #tasks by id
/task/scores?id=0R7p5AZpxMmffUU7k

TODO

  • Add tags to get task (API)
  • Batch users retrieve in scores calculation (Scorer)
  • Debug HTTPS Docker (API)
  • Add more routes (get all, get by id) (API)
  • Add errors.Wrap for error context

Directories

Path Synopsis
cmd
api
pkg

Jump to

Keyboard shortcuts

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