skill

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SongToAudioItem

func SongToAudioItem(streamDomain string, offset int, song *model.Song) (ai *response.AudioItem)

Types

type HandlerSelector

type HandlerSelector struct {
	StreamDomain string
	Queue        *model.Queue
}

func (*HandlerSelector) HandleRequest

func (handlerSelector *HandlerSelector) HandleRequest(rqe *request.RequestEnvelope, c context.Context) (rs *response.ResponseEnvelope)

type IHandlerSelector added in v0.0.2

type IHandlerSelector interface {
	HandleRequest(rqe *request.RequestEnvelope, c context.Context) (rs *response.ResponseEnvelope)
}

func NewHandlerSelector

func NewHandlerSelector(queue *model.Queue, StreamDomain string) IHandlerSelector

type SkillAPI

type SkillAPI struct {
	HandlerSelector IHandlerSelector
	AlexaSkillId    string
}

func NewSkillAPI

func NewSkillAPI(handlerSelector IHandlerSelector, alexaSkillId string) *SkillAPI

func (*SkillAPI) Post

func (api *SkillAPI) Post(c *gin.Context)

Jump to

Keyboard shortcuts

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