controllers

package
v0.0.0-...-21946b5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Fabric *fabric.Setup
}

Controller struct use to store a Fabric SDK instance and serve web pages

func (*Controller) AcquireResourceHandler

func (c *Controller) AcquireResourceHandler() func(http.ResponseWriter, *http.Request)

AcquireResourceHandler controller that allow to acquire a resource

func (*Controller) AddResourceHandler

func (c *Controller) AddResourceHandler() func(http.ResponseWriter, *http.Request)

AddResourceHandler controller that allow to add a resource

func (*Controller) DeleteResourceHandler

func (c *Controller) DeleteResourceHandler() func(http.ResponseWriter, *http.Request)

DeleteResourceHandler controller that allow to delete a resource

func (*Controller) HomeHandler

func (c *Controller) HomeHandler() func(http.ResponseWriter, *http.Request)

HomeHandler controller that allow to get the home page

func (*Controller) LogoutHandler

func (c *Controller) LogoutHandler(w http.ResponseWriter, r *http.Request)

LogoutHandler handler to disconnect the user (using basic auth)

func (*Controller) ReleaseResourceHandler

func (c *Controller) ReleaseResourceHandler() func(http.ResponseWriter, *http.Request)

ReleaseResourceHandler controller that allow to release a resource

func (*Controller) ResourceHandler

func (c *Controller) ResourceHandler() func(http.ResponseWriter, *http.Request)

ResourceHandler controller that allow to see resource details

func (*Controller) ResourcesHandler

func (c *Controller) ResourcesHandler() func(http.ResponseWriter, *http.Request)

ResourcesHandler controller that allow to see resources

Jump to

Keyboard shortcuts

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