hashtock-go

command module
v0.0.0-...-1149816 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2015 License: GPL-2.0 Imports: 9 Imported by: 0

README

hashtock-go

Install

Assuming you have Go installed and set up

# Install mongodb
# Clone hashtock-go
git clone git@github.com:hashtock/hashtock-go.git $GOPATH/src/github.com hashtock/hashtock-go

# Install requirements
go get github.com/tools/godep

Serve

cd $GOPATH/src/github.com/hashtock/hashtock-go
godep go build
./hashtock-go

Run tests

cd $GOPATH/src/github.com/hashtock/hashtock-go
./run_tests.sh

Functionality

Bank:

  • Buy hash tag
  • Sell hash tag
  • Current bank value of a given hash tag, and how much does it have for sell
  • Currnet bank value of all hash tags it knows about, and how much does it have for sell
  • History of bank operations

Market (ToDo):

  • Accepts buy offers for a given hashtag+price+amount
  • Accepts sell offers for a given hashtag+price+amount
  • Allows to view any request by ID - owner only
  • Allows to cancel any request if not fulfilled
  • History of market operations

Client:

  • Account balance
  • Current portfolio of hash tags

API

URI prefix: /api/

URI Method Description
/portfolio GET List of owned tags
/portfolio/{hash} GET Detailt about owned tag
/balance GET User's cache balance
/bank/ GET List of all tags with bank values
/bank/{hash}/ GET Details about the hash tag
/order/ GET List of current orders
/order/ POST Add new order
/order/{uuid}/ GET Order details
/order/{uuid}/ DELETE Cancel the order
/order/history/ GET List of all orders

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/codegangsta/negroni
Package negroni is an idiomatic approach to web middleware in Go.
Package negroni is an idiomatic approach to web middleware in Go.
_workspace/src/github.com/gorilla/context
Package context stores values shared during a request lifetime.
Package context stores values shared during a request lifetime.
_workspace/src/github.com/gorilla/mux
Package gorilla/mux implements a request router and dispatcher.
Package gorilla/mux implements a request router and dispatcher.
_workspace/src/github.com/gorilla/pat
Package gorilla/pat is a request router and dispatcher with a pat-like interface.
Package gorilla/pat is a request router and dispatcher with a pat-like interface.
_workspace/src/github.com/gorilla/schema
Package gorilla/schema fills a struct with form values.
Package gorilla/schema fills a struct with form values.
_workspace/src/github.com/nats-io/nats
A Go client for the NATS messaging system (https://nats.io).
A Go client for the NATS messaging system (https://nats.io).
_workspace/src/github.com/pborman/uuid
The uuid package generates and inspects UUIDs.
The uuid package generates and inspects UUIDs.
_workspace/src/gopkg.in/mgo.v2
Package mgo offers a rich MongoDB driver for Go.
Package mgo offers a rich MongoDB driver for Go.
_workspace/src/gopkg.in/mgo.v2/bson
Package bson is an implementation of the BSON specification for Go: http://bsonspec.org It was created as part of the mgo MongoDB driver for Go, but is standalone and may be used on its own without the driver.
Package bson is an implementation of the BSON specification for Go: http://bsonspec.org It was created as part of the mgo MongoDB driver for Go, but is standalone and may be used on its own without the driver.
_workspace/src/gopkg.in/mgo.v2/internal/scram
Pacakage scram implements a SCRAM-{SHA-1,etc} client per RFC5802.
Pacakage scram implements a SCRAM-{SHA-1,etc} client per RFC5802.
_workspace/src/gopkg.in/mgo.v2/txn
The txn package implements support for multi-document transactions.
The txn package implements support for multi-document transactions.

Jump to

Keyboard shortcuts

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