Documentation ¶
Index ¶
- type Controller
- func (c *Controller) AcquireResourceHandler() func(http.ResponseWriter, *http.Request)
- func (c *Controller) AddResourceHandler() func(http.ResponseWriter, *http.Request)
- func (c *Controller) DeleteResourceHandler() func(http.ResponseWriter, *http.Request)
- func (c *Controller) HomeHandler() func(http.ResponseWriter, *http.Request)
- func (c *Controller) LogoutHandler(w http.ResponseWriter, r *http.Request)
- func (c *Controller) ReleaseResourceHandler() func(http.ResponseWriter, *http.Request)
- func (c *Controller) ResourceHandler() func(http.ResponseWriter, *http.Request)
- func (c *Controller) ResourcesHandler() func(http.ResponseWriter, *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
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
Click to show internal directories.
Click to hide internal directories.