Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidID = errors.New("ID is not in it's proper form")
ErrInvalidID occurs when an ID is not in a valid form.
Functions ¶
func CreateSubmission ¶
func CreateSubmission(context interface{}, db *db.DB, formID string, answers []submission.AnswerInput) (*submission.Submission, error)
CreateSubmission creates a form submission based on a given form with a set of answers related to it.
func DeleteSubmission ¶
DeleteSubmission deletes a submission as well as updating a form's stats.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.