Documentation ¶
Index ¶
- Constants
- func AddAnswerToFormGallery(context *web.AppContext) (*model.FormGallery, *web.AppError)
- func AddFlagToFormSubmission(context *web.AppContext) (*model.FormSubmission, *web.AppError)
- func CalculateStats()
- func CreateFormGallery(context *web.AppContext) (*model.FormGallery, *web.AppError)
- func CreateFormSubmission(context *web.AppContext) (*model.FormSubmission, *web.AppError)
- func CreateIndex(context *web.AppContext) *web.AppError
- func CreateNote(context *web.AppContext) (*model.Note, *web.AppError)
- func CreateTagTargets(db *db.MongoDB, tags []string, tt *model.TagTarget) error
- func CreateUpdateAction(context *web.AppContext) (*model.Action, *web.AppError)
- func CreateUpdateAsset(context *web.AppContext) (*model.Asset, *web.AppError)
- func CreateUpdateAuthor(context *web.AppContext) (*model.Author, *web.AppError)
- func CreateUpdateComment(context *web.AppContext) (*model.Comment, *web.AppError)
- func CreateUpdateForm(context *web.AppContext) (*model.Form, *web.AppError)
- func CreateUpdateSearch(context *web.AppContext) (*model.Search, *web.AppError)
- func CreateUpdateSection(context *web.AppContext) (*model.Section, *web.AppError)
- func CreateUpdateTag(context *web.AppContext) (*model.Tag, *web.AppError)
- func CreateUpdateUser(context *web.AppContext) (*model.User, *web.AppError)
- func CreateUserAction(context *web.AppContext) *web.AppError
- func DeleteForm(c *web.AppContext) *web.AppError
- func DeleteFormGallery(c *web.AppContext) *web.AppError
- func DeleteFormSubmission(c *web.AppContext) *web.AppError
- func DeleteSearch(context *web.AppContext) *web.AppError
- func DeleteTag(context *web.AppContext) *web.AppError
- func EditFormSubmissionAnswer(c *web.AppContext) (*model.FormSubmission, *web.AppError)
- func GetForm(c *web.AppContext) (model.Form, *web.AppError)
- func GetFormGalleriesByForm(c *web.AppContext) ([]model.FormGallery, *web.AppError)
- func GetFormGallery(c *web.AppContext) (model.FormGallery, *web.AppError)
- func GetFormSubmission(c *web.AppContext) (model.FormSubmission, *web.AppError)
- func GetFormSubmissionsByForm(c *web.AppContext) (map[string]interface{}, *web.AppError)
- func GetForms(context *web.AppContext) ([]model.Form, *web.AppError)
- func GetSearch(context *web.AppContext) (*model.Search, *web.AppError)
- func GetSearches(context *web.AppContext) ([]model.Search, *web.AppError)
- func GetSections(context *web.AppContext) ([]model.Section, *web.AppError)
- func GetTags(context *web.AppContext) ([]model.Tag, *web.AppError)
- func ImportAction(context *web.AppContext) (*model.Action, *web.AppError)
- func ImportAsset(context *web.AppContext) (*model.Asset, *web.AppError)
- func ImportComment(context *web.AppContext) (*model.Comment, *web.AppError)
- func ImportUser(context *web.AppContext) (*model.User, *web.AppError)
- func PublishEvent(c *web.AppContext, object interface{}, payload interface{})
- func RemoveAnswerFromFormGallery(context *web.AppContext) (*model.FormGallery, *web.AppError)
- func RemoveFlagFromFormSubmission(context *web.AppContext) (*model.FormSubmission, *web.AppError)
- func SearchFormSubmissions(c *web.AppContext) ([]model.FormSubmission, *web.AppError)
- func UnmarshallAndValidate(context *web.AppContext, m model.Model) *web.AppError
- func UpdateFormGallery(context *web.AppContext) (*model.FormGallery, *web.AppError)
- func UpdateFormStatus(context *web.AppContext) (*model.Form, *web.AppError)
- func UpdateFormSubmissionStatus(context *web.AppContext) (*model.FormSubmission, *web.AppError)
- func UpdateMetadata(context *web.AppContext) (interface{}, *web.AppError)
- func UpdateSearch()
Constants ¶
const (
MaxResults int = 1000
)
Variables ¶
This section is empty.
Functions ¶
func AddAnswerToFormGallery ¶ added in v0.3.4
func AddAnswerToFormGallery(context *web.AppContext) (*model.FormGallery, *web.AppError)
add an answer to a form gallery
func AddFlagToFormSubmission ¶ added in v0.3.4
func AddFlagToFormSubmission(context *web.AppContext) (*model.FormSubmission, *web.AppError)
func CalculateStats ¶ added in v0.3.4
func CalculateStats()
CalculateStats calculate stats as a service to use in the cron scheduler
func CreateFormGallery ¶ added in v0.3.4
func CreateFormGallery(context *web.AppContext) (*model.FormGallery, *web.AppError)
** consider implementing this as a method on FormGallery **
func CreateFormSubmission ¶ added in v0.3.4
func CreateFormSubmission(context *web.AppContext) (*model.FormSubmission, *web.AppError)
func CreateIndex ¶
func CreateIndex(context *web.AppContext) *web.AppError
CreateIndex creates indexes to various entities
func CreateNote ¶
CreateNote creates a new note resource
func CreateTagTargets ¶
CreateTagTargets creates TagTarget entries for various tags on an entity
func CreateUpdateAction ¶ added in v0.3.4
CreateUpdateAction creates/updates an action
func CreateUpdateAsset ¶
CreateUpdateAsset creates/updates an asset resource
func CreateUpdateAuthor ¶ added in v0.3.4
CreateUpdateAuthor creates/updates an author resource
func CreateUpdateComment ¶
CreateUpdateComment creates/updates a comment resource
func CreateUpdateForm ¶ added in v0.3.4
func CreateUpdateSearch ¶ added in v0.3.4
CreateUpdateSearch upserts a Search
func CreateUpdateSection ¶ added in v0.3.4
CreateUpdateSection creates/updates a Section
func CreateUpdateTag ¶
CreateUpdateTag adds or updates a tag
func CreateUpdateUser ¶
CreateUpdateUser creates/updates a user resource
func CreateUserAction ¶
func CreateUserAction(context *web.AppContext) *web.AppError
CreateUserAction inserts an activity by the user
func DeleteForm ¶ added in v0.3.4
func DeleteForm(c *web.AppContext) *web.AppError
DeleteForm deletes a Form
func DeleteFormGallery ¶ added in v0.3.4
func DeleteFormGallery(c *web.AppContext) *web.AppError
DeleteFormGallery deletes a FormGallery
func DeleteFormSubmission ¶ added in v0.3.4
func DeleteFormSubmission(c *web.AppContext) *web.AppError
DeleteFormSubmission deletes a FormSubmission
func DeleteSearch ¶ added in v0.3.4
func DeleteSearch(context *web.AppContext) *web.AppError
DeleteSearch deletes a Search
func EditFormSubmissionAnswer ¶ added in v0.3.4
func EditFormSubmissionAnswer(c *web.AppContext) (*model.FormSubmission, *web.AppError)
func GetFormGalleriesByForm ¶ added in v0.3.4
func GetFormGalleriesByForm(c *web.AppContext) ([]model.FormGallery, *web.AppError)
GetFormGallerys returns an array of FormGallerys
func GetFormGallery ¶ added in v0.3.4
func GetFormGallery(c *web.AppContext) (model.FormGallery, *web.AppError)
GetFormGallerys returns a single FormGallery by id
func GetFormSubmission ¶ added in v0.3.4
func GetFormSubmission(c *web.AppContext) (model.FormSubmission, *web.AppError)
GetFormSubmissions returns a single FormSubmission by id
func GetFormSubmissionsByForm ¶ added in v0.3.4
func GetFormSubmissionsByForm(c *web.AppContext) (map[string]interface{}, *web.AppError)
GetFormSubmissions returns an array of FormSubmissions
func GetSearches ¶ added in v0.3.4
GetSearches returns the list of all Search items in the system
func GetSections ¶ added in v0.3.4
GetSections returns an array of Sections
func ImportAction ¶ added in v0.3.4
ImportAction imports a new action resource
func ImportAsset ¶ added in v0.3.4
ImportAsset imports a new asset into Coral
func ImportComment ¶ added in v0.3.4
ImportComment imports a new comment resource
func ImportUser ¶ added in v0.3.4
ImportUser imports a new user resource
func PublishEvent ¶ added in v0.3.4
func PublishEvent(c *web.AppContext, object interface{}, payload interface{})
func RemoveAnswerFromFormGallery ¶ added in v0.3.4
func RemoveAnswerFromFormGallery(context *web.AppContext) (*model.FormGallery, *web.AppError)
remove an answer from a form gallery
func RemoveFlagFromFormSubmission ¶ added in v0.3.4
func RemoveFlagFromFormSubmission(context *web.AppContext) (*model.FormSubmission, *web.AppError)
Flag functionality specified here can be abstracted as Flaggabe behavior
func SearchFormSubmissions ¶ added in v0.3.4
func SearchFormSubmissions(c *web.AppContext) ([]model.FormSubmission, *web.AppError)
func UnmarshallAndValidate ¶ added in v0.3.4
func UpdateFormGallery ¶ added in v0.3.4
func UpdateFormGallery(context *web.AppContext) (*model.FormGallery, *web.AppError)
UpdateFormGallery receives a form gallery and its gallery_id and updates it
func UpdateFormStatus ¶ added in v0.3.4
given a form's id and a stats, update the form with the status
func UpdateFormSubmissionStatus ¶ added in v0.3.4
func UpdateFormSubmissionStatus(context *web.AppContext) (*model.FormSubmission, *web.AppError)
given a form's id and a stats, update the form with the status
func UpdateMetadata ¶
func UpdateMetadata(context *web.AppContext) (interface{}, *web.AppError)
UpdateMetadata updates metadata for an entity
func UpdateSearch ¶ added in v0.3.4
func UpdateSearch()
Types ¶
This section is empty.