Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Database *mgo.Database Service *goa.Service )
Functions ¶
This section is empty.
Types ¶
type JsController ¶
type JsController struct {
*goa.Controller
}
JsController implements the js resource.
func NewJsController ¶
func NewJsController(service *goa.Service) *JsController
NewJsController creates a js controller.
type PublicController ¶
type PublicController struct {
*goa.Controller
}
PublicController implements the public resource.
func NewPublicController ¶
func NewPublicController(service *goa.Service) *PublicController
NewPublicController creates a public controller.
type PurchaseController ¶
type PurchaseController struct {
*goa.Controller
}
PurchaseController implements the Purchase resource.
func NewPurchaseController ¶
func NewPurchaseController(service *goa.Service, database *mgo.Database) *PurchaseController
NewPurchaseController creates a Purchase controller.
func (*PurchaseController) Create ¶
func (c *PurchaseController) Create(ctx *app.CreatePurchaseContext) error
Create runs the create action.
func (*PurchaseController) Show ¶
func (c *PurchaseController) Show(ctx *app.ShowPurchaseContext) error
Show runs the show action.
type SwaggerController ¶
type SwaggerController struct {
*goa.Controller
}
SwaggerController implements the Swagger resource.
func NewSwaggerController ¶
func NewSwaggerController(service *goa.Service) *SwaggerController
NewSwaggerController creates a Swagger controller.
Click to show internal directories.
Click to hide internal directories.