Documentation ¶
Index ¶
- func Connect(log log.ILog, settings settings.ISettings) (err error)
- func GetAllResults(surveyID string) (results []models.Result, err error)
- func GetResults(surveyID string, questionID string) (results []models.Result, err error)
- func GetSubmitCount(surveyID string) (count int)
- func GetSurvey(surveyID string) (*models.Survey, error)
- func IncrementResult(surveyID string, questionID string, answer string) (err error)
- func IncrementSubmitCount(surveyID string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(log log.ILog, settings settings.ISettings) (err error)
Connect to the database
func GetAllResults ¶
GetAllResults gets all the results for a given survey
func GetResults ¶
GetResults gets the results for a given survey and question
func GetSubmitCount ¶
GetSubmitCount Gets the survey submit count
func IncrementResult ¶
IncrementResult increments a survey answer count
func IncrementSubmitCount ¶
IncrementSubmitCount increments the survey submit count
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.