Versions in this module Expand all Collapse all v0 v0.21.1 Nov 6, 2024 v0.21.0 Oct 28, 2024 Changes in this version + const Completed + const InProgress + const Name + const Started + const TopicPluginAlexa + const TriggerFunctionName + const TriggerName + const TriggerOptionSkillId + var F embed.FS + func HTTPError(w http.ResponseWriter, logMsg string, err string, errCode int) + func IsValidAlexaRequest(w http.ResponseWriter, r *http.Request) bool + func New() plugins.Pluggable + func NewTrigger(eventBus bus.Bus) (tr triggers.ITrigger) + func NewTriggerParams() m.TriggerParams + type AlexaBind struct + Slots map[string]string + func NewAlexaBind(eventBus bus.Bus, skillId int64) (alex *AlexaBind) + func (r *AlexaBind) Card(title string, content string) *AlexaBind + func (r *AlexaBind) EndSession(flag bool) *AlexaBind + func (r *AlexaBind) OutputSpeech(text string) *AlexaBind + func (r *AlexaBind) SendMessage(msg interface{}) + func (r *AlexaBind) Session() string + type AlexaPlugin interface + Server func() IServer + type Config struct + Host string + Port int + func NewConfig(appConfig *m.AppConfig) Config + func (c Config) String() string + type ConfirmationStatus string + const ConfConfirmed + const ConfDenied + const ConfNone + type Context struct + System struct{ ... } + type DialogType string + const ConfirmIntent + const ConfirmSlot + const Delegate + const ElicitSlot + type Directive struct + IntentToConfirm string + SlotToConfirm string + SlotToElicit string + Type DialogType + UpdatedIntent *Intent + type EchoRespImage struct + LargeImageURL string + SmallImageURL string + type EventAddedAlexaSkillModel struct + Skill *m.AlexaSkill + type EventAlexaAction struct + IntentName string + Payload interface{} + SkillId int64 + type EventDeletedAlexaSkill struct + Skill *m.AlexaSkill + type EventUpdatedAlexaSkillModel struct + Skill *m.AlexaSkill + type IServer interface + AddSkill func(skill *m.AlexaSkill) + DeleteSkill func(skill *m.AlexaSkill) + OnAudioPlayerHandler func(ctx *gin.Context, req *Request, resp *Response) + OnIntentHandle func(ctx *gin.Context, req *Request, resp *Response) + OnLaunchHandler func(ctx *gin.Context, req *Request, resp *Response) + OnSessionEndedHandler func(ctx *gin.Context, req *Request, resp *Response) + Start func() + Stop func() + UpdateSkill func(skill *m.AlexaSkill) + type Intent struct + ConfirmationStatus ConfirmationStatus + Name string + Slots map[string]Slot + type Reprompt struct + OutputSpeech RespPayload + type ReqBody struct + DialogState string + Intent Intent + Locale string + Reason string + RequestID string + Timestamp string + Type string + type Request struct + Context Context + Request ReqBody + Session Session + Version string + func (r *Request) AllSlots() map[string]Slot + func (r *Request) GetIntentName() string + func (r *Request) GetRequestType() string + func (r *Request) GetSessionID() string + func (r *Request) GetSlot(slotName string) (Slot, error) + func (r *Request) GetSlotValue(slotName string) (string, error) + func (r *Request) GetUserID() string + func (r *Request) Locale() string + func (r *Request) VerifyAppID(myAppID string) bool + func (r *Request) VerifyTimestamp() bool + type Resolution struct + ResolutionsPerAuthority []ResolutionPerAuthority + type ResolutionPerAuthority struct + Authority string + Status struct{ ... } + Values []map[string]struct{ ... } + type RespBody struct + Card *RespPayload + Directives []*Directive + OutputSpeech *RespPayload + Reprompt *Reprompt + ShouldEndSession bool + type RespPayload struct + Content string + Image EchoRespImage + SSML string + Text string + Title string + Type string + type Response struct + Response RespBody + SessionAttributes map[string]interface{} + Version string + func NewResponse() *Response + func (r *Response) Card(title string, content string) *Response + func (r *Response) EndSession(flag bool) *Response + func (r *Response) LinkAccountCard() *Response + func (r *Response) OutputSpeech(text string) *Response + func (r *Response) OutputSpeechSSML(text string) *Response + func (r *Response) Reprompt(text string) *Response + func (r *Response) RepromptSSML(text string) *Response + func (r *Response) RespondToIntent(name DialogType, intent *Intent, slot *Slot) *Response + func (r *Response) SimpleCard(title string, content string) *Response + func (r *Response) StandardCard(title string, content string, smallImg string, largeImg string) *Response + func (r *Response) String() ([]byte, error) + type Server struct + func NewServer(adaptors *adaptors.Adaptors, config Config, ...) *Server + func (s *Server) AddSkill(skill *m.AlexaSkill) + func (s *Server) DeleteSkill(skill *m.AlexaSkill) + func (s *Server) OnAudioPlayerHandler(ctx *gin.Context, req *Request, resp *Response) + func (s *Server) OnIntentHandle(ctx *gin.Context, req *Request, resp *Response) + func (s *Server) OnLaunchHandler(ctx *gin.Context, req *Request, resp *Response) + func (s *Server) OnSessionEndedHandler(ctx *gin.Context, req *Request, resp *Response) + func (s *Server) Start() + func (s *Server) Stop() + func (s *Server) UpdateSkill(skill *m.AlexaSkill) + func (s Server) Auth(ctx *gin.Context) + type ServerLogger struct + func NewLogger() *ServerLogger + func (s ServerLogger) Write(b []byte) (i int, err error) + type Session struct + Application struct{ ... } + Attributes map[string]interface{} + New bool + SessionID string + User struct{ ... } + type Skill struct + func NewSkill(model *m.AlexaSkill, adaptors *adaptors.Adaptors, ...) (skill *Skill) + func (h *Skill) OnIntent(_ *gin.Context, req *Request, resp *Response) + func (h *Skill) OnLaunch(_ *gin.Context, req *Request, resp *Response) + func (h *Skill) OnSessionEnded(_ *gin.Context, req *Request, resp *Response) + func (h Skill) GetAppID() string + func (h Skill) OnAudioPlayerState(ctx *gin.Context, req *Request, resp *Response) + type Slot struct + ConfirmationStatus ConfirmationStatus + Name string + Resolutions Resolution + Value string + type Trigger struct + func (t Trigger) AsyncAttach(wg *sync.WaitGroup) + func (t Trigger) CallManual() + func (t Trigger) FunctionName() string + func (t Trigger) Name() string + func (t Trigger) Subscribe(options triggers.Subscriber) error + func (t Trigger) Unsubscribe(options triggers.Subscriber) error