Documentation ¶
Index ¶
- func NewApplicationResultRenderer(result interface{}) detour.Renderer
- func RegisterRoutes(router httprouter.Router, controller *Controller)
- type ApplicationResultRenderer
- type Controller
- func (this *Controller) Abort(input *models.TransactionInput) detour.Renderer
- func (this *Controller) Commit(input *models.TransactionInput) detour.Renderer
- func (this *Controller) Delete(input *models.DeleteInput) detour.Renderer
- func (this *Controller) Load(input *models.LoadInput) detour.Renderer
- func (this *Controller) Store(input *models.StoreInput) detour.Renderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(router httprouter.Router, controller *Controller)
TODO: protect sensitive files, e.g. /tx/... from load/store/delete
Types ¶
type ApplicationResultRenderer ¶
type ApplicationResultRenderer struct {
// contains filtered or unexported fields
}
func (ApplicationResultRenderer) Render ¶
func (this ApplicationResultRenderer) Render(response http.ResponseWriter, request *http.Request)
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(sender contracts.MessageSender) *Controller
func (*Controller) Abort ¶
func (this *Controller) Abort(input *models.TransactionInput) detour.Renderer
func (*Controller) Commit ¶
func (this *Controller) Commit(input *models.TransactionInput) detour.Renderer
func (*Controller) Delete ¶
func (this *Controller) Delete(input *models.DeleteInput) detour.Renderer
func (*Controller) Store ¶
func (this *Controller) Store(input *models.StoreInput) detour.Renderer
Click to show internal directories.
Click to hide internal directories.