handler

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AboutThisApp

func AboutThisApp(c *web.AppContext)

AboutThisApp displays the about page

func AddAnswerToFormGallery added in v0.3.4

func AddAnswerToFormGallery(c *web.AppContext)

func AddFlagToFormSubmission added in v0.3.4

func AddFlagToFormSubmission(c *web.AppContext)

func AppHandler added in v0.3.4

func AppHandler() negroni.Handler

AppHandler is a handler to inject gorilla context to the request.

func CORS added in v0.3.4

func CORS() *cors.Cors

CORS is a handler to take care of CORS

func CreateFormSubmission added in v0.3.4

func CreateFormSubmission(c *web.AppContext)

func CreateIndex

func CreateIndex(c *web.AppContext)

CreateIndex end-point allows creation of new database index.

func CreateUpdateAsset

func CreateUpdateAsset(c *web.AppContext)

CreateUpdateAsset end-point allows creation or updation of Asset.

func CreateUpdateAuthor added in v0.3.4

func CreateUpdateAuthor(c *web.AppContext)

CreateUpdateAuthor end-point allows creation or updation of Author.

func CreateUpdateComment

func CreateUpdateComment(c *web.AppContext)

CreateUpdateComment end-point allows creation or updation of Comment.

func CreateUpdateForm added in v0.3.4

func CreateUpdateForm(c *web.AppContext)

func CreateUpdateSearch added in v0.3.4

func CreateUpdateSearch(c *web.AppContext)

CreateUpdateSearch end-point allows creation or updation of Search.

func CreateUpdateSection added in v0.3.4

func CreateUpdateSection(c *web.AppContext)

CreateUpdateSection end-point allows creation or updation of Section.

func CreateUpdateTag

func CreateUpdateTag(c *web.AppContext)

CreateUpdateTag end-point allows creation or updation of Tag.

func CreateUpdateUser

func CreateUpdateUser(c *web.AppContext)

CreateUpdateUser end-point allows creation or updation of User.

func CreateUserAction added in v0.3.4

func CreateUserAction(c *web.AppContext)

CreateUserAction end-point allows registration of all events from front-end.

func DeleteForm added in v0.3.4

func DeleteForm(c *web.AppContext)

func DeleteFormSubmission added in v0.3.4

func DeleteFormSubmission(c *web.AppContext)

func DeleteSearch added in v0.3.4

func DeleteSearch(c *web.AppContext)

DeleteSearch end-point allows deletion of Search.

func DeleteTag

func DeleteTag(c *web.AppContext)

DeleteTag end-point allows deletion of Tag.

func EditFormSubmissionAnswer added in v0.3.4

func EditFormSubmissionAnswer(c *web.AppContext)

func GetAppContext added in v0.3.4

func GetAppContext(r *http.Request, input interface{}) *web.AppContext

GetAppContext returns an AppContext from the global gorilla context.

func GetForm added in v0.3.4

func GetForm(c *web.AppContext)

func GetFormGalleriesByForm added in v0.3.4

func GetFormGalleriesByForm(c *web.AppContext)

func GetFormGallery added in v0.3.4

func GetFormGallery(c *web.AppContext)

func GetFormSubmission added in v0.3.4

func GetFormSubmission(c *web.AppContext)

func GetFormSubmissionsByForm added in v0.3.4

func GetFormSubmissionsByForm(c *web.AppContext)

func GetForms added in v0.3.4

func GetForms(c *web.AppContext)

func GetSearch added in v0.3.4

func GetSearch(c *web.AppContext)

GetSearch end-point returns a single Search.

func GetSearches added in v0.3.4

func GetSearches(c *web.AppContext)

GetSearches end-point returns all available Searches in the system.

func GetTags

func GetTags(c *web.AppContext)

GetTags end-point returns all available tags in the system.

func ImportAction

func ImportAction(c *web.AppContext)

ImportAction imports actions into the system

func ImportAsset

func ImportAsset(c *web.AppContext)

ImportAsset imports a new asset to the system

func ImportComment

func ImportComment(c *web.AppContext)

ImportComment imports a new comment to the system

func ImportNote

func ImportNote(c *web.AppContext)

ImportNote imports notes into the system

func ImportUser

func ImportUser(c *web.AppContext)

ImportUser imports a new user to the system

func Login

func Login(w http.ResponseWriter, r *http.Request)

Login logs the user into the system

func Logout

func Logout(w http.ResponseWriter, r *http.Request)

Logout logs the user out of the system

func RemoveAnswerFromFormGallery added in v0.3.4

func RemoveAnswerFromFormGallery(c *web.AppContext)

func RemoveFlagFromFormSubmission added in v0.3.4

func RemoveFlagFromFormSubmission(c *web.AppContext)

func SearchFormSubmissions added in v0.3.4

func SearchFormSubmissions(c *web.AppContext)

func SetAppContext added in v0.3.4

func SetAppContext(r *http.Request, val *web.AppContext)

SetAppContext sets an AppContext to the global gorilla context.

func UpdateFormGallery added in v0.3.4

func UpdateFormGallery(c *web.AppContext)

func UpdateFormStatus added in v0.3.4

func UpdateFormStatus(c *web.AppContext)

func UpdateFormSubmissionStatus added in v0.3.4

func UpdateFormSubmissionStatus(c *web.AppContext)

func UpdateMetadata added in v0.3.4

func UpdateMetadata(c *web.AppContext)

UpdateMetadata end-point allows updation of Metadata within an entity.

Types

type About

type About struct {
	App     string
	Version string
}

About - about this application

Jump to

Keyboard shortcuts

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