khan

command module
v4.3.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 1 Imported by: 0

README

Khan

Build Status Coverage Status Code Climate Go Report Card Docs

Khan will drive all your enemies to the sea (and also take care of your game's clans)!

What is Khan? Khan is an HTTP "resty" API for managing clans for games. It could be used to manage groups of people, but our aim is players in a game.

Khan allows your app to focus on the interaction required to creating clans and managing applications, instead of the backend required for actually doing it.

Features

  • Multi-tenant - Khan already works for as many games as you need, just keep adding new games;
  • Clan Management - Create and manage clans, their metadata as well as promote and demote people in their rosters;
  • Player Management - Manage players and their metadata, as well as their applications to clans;
  • Applications - Khan handles the work involved with applying to clans, inviting people to clans, accepting, denying and kicking;
  • Clan Search - Search a list of clans to present your player with relevant options;
  • Top Clans - Choose from a specific dimension to return a list of the top clans in that specific range (SOON);
  • Web Hooks - Need to integrate your clan system with another application? We got your back! Use our web hooks sytem and plug into whatever events you need;
  • Auditing Trail - Track every action coming from your games (SOON);
  • New Relic Support - Natively support new relic with segments in each API route for easy detection of bottlenecks;
  • Easy to deploy - Khan comes with containers already exported to docker hub for every single of our successful builds. Just pick your choice!

Read more about Khan in our comprehensive documentation.

Hacking Khan

Setup

Make sure you have go installed on your machine. If you use homebrew you can install it with brew install go.

Run make setup.

Running the application

Create the development database with make migrate (first time only).

Run the api with make run.

Running with docker

Provided you have docker installed, to build Khan's image run:

$ make build-docker

To run a new khan instance, run:

$ make run-docker
Tests

Running tests can be done with make test, while creating the test database can be accomplished with make drop-test and make db-test.

Benchmark

Running benchmarks can be done with make ci-perf.

Coverage

Getting coverage data can be achieved with make coverage, while reading the actual results can be done with make coverage-html.

Static Analysis

Khan goes through some static analysis tools for go. To run them just use make static.

Right now, gocyclo can't process the vendor folder, so we just ignore the exit code for it, while maintaining the output for anything not in the vendor folder.

Security

If you have found a security vulnerability, please email security@tfgco.com

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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