Documentation ¶
Index ¶
- type Initiator
- type Normaliser
- type QuestionTemplateVars
- type Survey
- func (s *Survey) GetNextQuestion(userId string, tplVars *QuestionTemplateVars) (question *domain.Question, err error)
- func (s *Survey) RecordAnswer(userId, answerText, channel string) (domain.Answer, error)
- func (s *Survey) RecordAnswerRaw(userId, questionId, answerText, channel string) error
- func (s *Survey) RecordGpsAnswer(userId string, lat, lon float64, address string, channel string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Initiator ¶
type Initiator struct { Bot *linebot.Client Storage *storage.Sql Survey *Survey GlobalVars *domain.GlobalTplVars }
func NewInitiator ¶
type Normaliser ¶
func NewNormaliser ¶
func NewNormaliser(storage *storage.Sql) *Normaliser
func (*Normaliser) Start ¶
func (n *Normaliser) Start(errc chan error)
type QuestionTemplateVars ¶
type Survey ¶
func (*Survey) GetNextQuestion ¶
func (*Survey) RecordAnswer ¶
func (*Survey) RecordAnswerRaw ¶
Click to show internal directories.
Click to hide internal directories.