/
hash_prism.go
37 lines (28 loc) · 995 Bytes
/
hash_prism.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package main
import (
"github.com/goadesign/goa"
"github.com/nikhil-thomas/technik-dojo/goa-exp/goa-examples/02_types/app"
)
// HashPrismController implements the hash_prism resource.
type HashPrismController struct {
*goa.Controller
}
// NewHashPrismController creates a hash_prism controller.
func NewHashPrismController(service *goa.Service) *HashPrismController {
return &HashPrismController{Controller: service.NewController("HashPrismController")}
}
// Create runs the create action.
func (c *HashPrismController) Create(ctx *app.CreateHashPrismContext) error {
// HashPrismController_Create: start_implement
// Put your logic here
return nil
// HashPrismController_Create: end_implement
}
// Show runs the show action.
func (c *HashPrismController) Show(ctx *app.ShowHashPrismContext) error {
// HashPrismController_Show: start_implement
// Put your logic here
res := &app.GoadesignExamplesHashprism{}
return ctx.OK(res)
// HashPrismController_Show: end_implement
}