Documentation ¶
Index ¶
- Constants
- func CallWebhook(svc services.Services, survey *types.Survey, session *types.SurveySession) error
- func CreateSurvey(svc services.Services, survey *types.Survey) error
- func CreateSurveySession(svc services.Services, survey *types.Survey, ipAddr string) (*types.SurveySession, error)
- func GetSurvey(svc services.Services, urlSlug string) (*types.Survey, error)
- func GetSurveyByUUID(svc services.Services, uuid string) (*types.Survey, error)
- func GetSurveySession(svc services.Services, survey types.Survey, sessionUUID string) (*types.SurveySession, error)
- func GetSurveySessions(svc services.Services, survey types.Survey, filter *types.SurveySessionsFilter) ([]types.SurveySession, int, error)
- func PersistSurveysSyncResult(svc services.Services, syncResult *types.SurveysSyncResult) error
- func SubmitAnswer(svc services.Services, session *types.SurveySession, survey *types.Survey, ...) (error, error)
- func SyncSurveys(svc services.Services) error
- func SyncSurveysOnChange(svc services.Services)
- func UpdateSurvey(svc services.Services, survey *types.Survey) error
Constants ¶
View Source
const URL_SLUG_LENGTH = 12
Variables ¶
This section is empty.
Functions ¶
func CallWebhook ¶
func CreateSurveySession ¶
func GetSurveyByUUID ¶
func GetSurveySession ¶
func GetSurveySessions ¶
func GetSurveySessions(svc services.Services, survey types.Survey, filter *types.SurveySessionsFilter) ([]types.SurveySession, int, error)
func PersistSurveysSyncResult ¶
func PersistSurveysSyncResult(svc services.Services, syncResult *types.SurveysSyncResult) error
Use cases 1. When it's a new survey - create it 2. When it's an existing survey - update it
func SubmitAnswer ¶
func SubmitAnswer(svc services.Services, session *types.SurveySession, survey *types.Survey, question *types.Question, req []byte, file *types.File) (error, error)
returns 2 errors: general and error details
func SyncSurveys ¶
func SyncSurveysOnChange ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.