Documentation
¶
Index ¶
- type Action
- type Audio
- type Button
- type ButtonRequest
- type ButtonRequestPayload
- type Card
- type CardV2
- type CardV2Payload
- type Carousel
- type CarouselPayload
- type Child
- type Config
- type Description
- type Dimensions
- type End
- type InteractionResponse
- type InteratctionRequest
- type NoReply
- type NoReplyPayload
- type Slate
- type Speak
- type State
- type Visual
- type VisualPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button struct { Name string `json:"name"` Request ButtonRequest `json:"request"` }
type ButtonRequest ¶
type ButtonRequest struct { Type string `json:"type"` Payload ButtonRequestPayload `json:"payload"` }
type ButtonRequestPayload ¶
type ButtonRequestPayload struct { Actions []interface{} `json:"actions"` // Adjust the type if `actions` has a specific structure Label string `json:"label"` }
type Card ¶
type Card struct { ID string `json:"id"` Title string `json:"title"` Description Description `json:"description"` ImageUrl string `json:"imageUrl"` Buttons []Button `json:"buttons"` }
type CardV2 ¶
type CardV2 struct { Type string `json:"type"` Time int64 `json:"time"` Payload CardV2Payload `json:"payload"` }
type CardV2Payload ¶
type CardV2Payload struct { ImageUrl string `json:"imageUrl"` Description Description `json:"description"` Buttons []Button `json:"buttons"` Title string `json:"title"` }
type Carousel ¶
type Carousel struct { Type string `json:"type"` Time int64 `json:"time"` Payload CarouselPayload `json:"payload"` }
type CarouselPayload ¶
type Description ¶
type Dimensions ¶
type InteractionResponse ¶
type InteratctionRequest ¶
type NoReply ¶
type NoReply struct { Type string `json:"type"` Time int64 `json:"time"` Payload NoReplyPayload `json:"payload"` }
type NoReplyPayload ¶
type NoReplyPayload struct {
Timeout int `json:"timeout"` // Timeout in seconds
}
type Visual ¶
type Visual struct { Type string `json:"type"` Payload VisualPayload `json:"payload"` }
type VisualPayload ¶
type VisualPayload struct { VisualType string `json:"visualType"` Image string `json:"image"` Dimensions Dimensions `json:"dimensions"` CanvasVisibility string `json:"canvasVisibility"` }
Specific payload types
Click to show internal directories.
Click to hide internal directories.