Documentation ¶
Index ¶
- Constants
- func Bindings() []*apps.Binding
- func NewSendSurveyFormResponse(c *apps.CallRequest) *apps.CallResponse
- func NewSendSurveyPartialFormResponse(c *apps.CallRequest, callType apps.CallType) *apps.CallResponse
- func NewSurveyForm(message string) *apps.Form
- func NewSurveyFormResponse(c *apps.CallRequest) *apps.CallResponse
- func SubmitSurvey(c *apps.CallRequest) *apps.CallResponse
- type HelloApp
- type SurveyFormSubmission
Constants ¶
View Source
const ( PathSendSurvey = "/send" PathSendSurveyModal = "/send-modal" PathSendSurveyCommandToModal = "/send-command-modal" PathSubscribeChannel = "/subscribe" PathUnsubscribeChannel = "/unsubscribe" PathSurvey = "/survey" PathUserJoinedChannel = "/user-joined-channel" PathSubmitSurvey = "/survey-submit" )
Variables ¶
This section is empty.
Functions ¶
func NewSendSurveyFormResponse ¶
func NewSendSurveyFormResponse(c *apps.CallRequest) *apps.CallResponse
func NewSendSurveyPartialFormResponse ¶
func NewSendSurveyPartialFormResponse(c *apps.CallRequest, callType apps.CallType) *apps.CallResponse
func NewSurveyForm ¶
func NewSurveyFormResponse ¶
func NewSurveyFormResponse(c *apps.CallRequest) *apps.CallResponse
func SubmitSurvey ¶
func SubmitSurvey(c *apps.CallRequest) *apps.CallResponse
Types ¶
type HelloApp ¶
type HelloApp struct {
// contains filtered or unexported fields
}
func NewHelloApp ¶
func (*HelloApp) ProcessSurvey ¶
func (h *HelloApp) ProcessSurvey(c *apps.CallRequest) error
func (*HelloApp) SendSurvey ¶
func (*HelloApp) UserJoinedChannel ¶
func (h *HelloApp) UserJoinedChannel(call *apps.CallRequest)
type SurveyFormSubmission ¶
type SurveyFormSubmission struct { UserID apps.SelectOption `json:"userID"` Message string `json:"message"` Other map[string]interface{} `json:"other"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.