controllers

package
v0.0.0-...-42acf81 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerGroup

type ControllerGroup struct {
	Accessors *accessors.AccessorGroup
}

ControllerGroup holds all config information for the controllers

func (*ControllerGroup) Buy

func (cg *ControllerGroup) Buy(c web.C, w http.ResponseWriter, r *http.Request)

Buy handles http requests to purchace a given stock

func (*ControllerGroup) Check

func (cg *ControllerGroup) Check(c web.C, w http.ResponseWriter, r *http.Request)

Check handles requests to the check endpoint

func (*ControllerGroup) Health

func (cg *ControllerGroup) Health(c web.C, w http.ResponseWriter, r *http.Request)

func (*ControllerGroup) Portfolio

func (cg *ControllerGroup) Portfolio(c web.C, w http.ResponseWriter, r *http.Request)

Portfolio handles requests for a given user's portfolio

func (*ControllerGroup) ReportLeaders

func (cg *ControllerGroup) ReportLeaders(c web.C, w http.ResponseWriter, r *http.Request)

func (*ControllerGroup) Sell

func (cg *ControllerGroup) Sell(c web.C, w http.ResponseWriter, r *http.Request)

Sell handles http requests to sell a user's holdings

func (*ControllerGroup) Slack

func (cg *ControllerGroup) Slack(c web.C, w http.ResponseWriter, r *http.Request)

Slack is a special kind of handler, it handles all requests from slack and routes them accordingly

func (*ControllerGroup) User

func (cg *ControllerGroup) User(c web.C, w http.ResponseWriter, r *http.Request)

User creates a given user account

Jump to

Keyboard shortcuts

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