hello

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 Bindings

func Bindings() []*apps.Binding

func NewSendSurveyFormResponse

func NewSendSurveyFormResponse(c *apps.CallRequest) *apps.CallResponse

func NewSendSurveyPartialFormResponse

func NewSendSurveyPartialFormResponse(c *apps.CallRequest, callType apps.CallType) *apps.CallResponse

func NewSurveyForm

func NewSurveyForm(message string) *apps.Form

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 NewHelloApp(mm *pluginapi.Client) *HelloApp

func (*HelloApp) Install

func (h *HelloApp) Install(appID apps.AppID, channelDisplayName string, c *apps.CallRequest) (md.MD, error)

func (*HelloApp) ProcessSurvey

func (h *HelloApp) ProcessSurvey(c *apps.CallRequest) error

func (*HelloApp) SendSurvey

func (h *HelloApp) SendSurvey(c *apps.CallRequest) (md.MD, error)

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL