web

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplicationResultRenderer

func NewApplicationResultRenderer(result interface{}) detour.Renderer

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) Load

func (this *Controller) Load(input *models.LoadInput) detour.Renderer

func (*Controller) Store

func (this *Controller) Store(input *models.StoreInput) detour.Renderer

Jump to

Keyboard shortcuts

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