strawmang

command module
v0.0.0-...-11cf8e9 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2015 License: MIT Imports: 12 Imported by: 0

README

strawmang

Strawmang is a simple chat application.

There can be three debates where people can anonymously or not debate about a topic. People can at anytime start a vote to kill the current topic where it will get deleted and possibly replaced by another topic. Topics can also be pruned after a certain amount of time.

The exact details haven't been completely established yet so it's still up in the air.

API/endpoints

None of this is final yet and I'm just using this as a base to figure out how the data structures will be organized

All endpoints and websocket can optionally return an error field that will indicate if any errors are returned

/status

Returns a JSON response listing the available chat endpoints. Expected response:

{
  "topics": [
  {
    "id": 5,
      "topic": "Tea vs coffee",
      "started": 1440290981,
      "ends": 1440294201,
  },
  {
    "id": 6,
    "topic": "Gentoo vs Arch",
    "started": 1440290981,
    "ends": 1440294201,
  },
  {
    "id": 7,
    "topic": "Javascript vs Coffeescript",
    "started": 1440290981,
    "ends": 1440294201,
  },
  ],
  "users": 15,
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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