Documentation
¶
Overview ¶
The missing types I couldn't find from anywhere in AWS's SDK or the Go ecosystem
Index ¶
- type AlexaAuthorizationAcceptGrantInput
- type AlexaBrightnessControllerSetBrightness
- type AlexaColorControllerSetColor
- type AlexaColorTemperatureControllerSetColorTemperature
- type AlexaDiscoveryDiscoverInput
- type AlexaEvent
- type AlexaEventHeader
- type AlexaPercentageControllerSetPercentage
- type AlexaPlaybackControllerFastForward
- type AlexaPlaybackControllerNext
- type AlexaPlaybackControllerPause
- type AlexaPlaybackControllerPlay
- type AlexaPlaybackControllerPrevious
- type AlexaPlaybackControllerRewind
- type AlexaPlaybackControllerStartOver
- type AlexaPlaybackControllerStop
- type AlexaPowerControllerTurnOff
- type AlexaPowerControllerTurnOn
- type AlexaProperty
- type AlexaReportStateInput
- type AlexaResponse
- type AlexaResponseContext
- type Change
- type ChangeCause
- type ChangeReport
- type ColorHsv
- type DirectiveInput
- type Endpoint
- type EndpointSpec
- type EndpointSpecCapability
- type EndpointSpecCapabilityNamedProperty
- type EndpointSpecCapabilityProperties
- type EndpointsPayload
- type NoPayload
- type TypeAndToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlexaAuthorizationAcceptGrantInput ¶
type AlexaAuthorizationAcceptGrantInput struct { Grant struct { Type string `json:"type"` Code string `json:"code"` } `json:"grant"` Grantee TypeAndToken `json:"grantee"` }
type AlexaBrightnessControllerSetBrightness ¶
type AlexaBrightnessControllerSetBrightness struct {
Brightness int `json:"brightness"`
}
type AlexaColorControllerSetColor ¶
type AlexaColorControllerSetColor struct {
Color ColorHsv `json:"color"`
}
type AlexaColorTemperatureControllerSetColorTemperature ¶
type AlexaColorTemperatureControllerSetColorTemperature struct {
ColorTemperatureInKelvin int `json:"colorTemperatureInKelvin"`
}
type AlexaDiscoveryDiscoverInput ¶
type AlexaDiscoveryDiscoverInput struct {
Scope TypeAndToken `json:"scope"`
}
type AlexaEvent ¶
type AlexaEvent struct { Header AlexaEventHeader `json:"header"` Endpoint *Endpoint `json:"endpoint,omitempty"` Payload *json.RawMessage `json:"payload"` }
type AlexaEventHeader ¶
type AlexaEventHeader struct { Namespace string `json:"namespace"` Name string `json:"name"` PayloadVersion string `json:"payloadVersion"` MessageId string `json:"messageId"` CorrelationToken *string `json:"correlationToken,omitempty"` }
shared in directive input & responses
type AlexaPercentageControllerSetPercentage ¶
type AlexaPercentageControllerSetPercentage struct {
Percentage int `json:"percentage"`
}
type AlexaPlaybackControllerFastForward ¶
type AlexaPlaybackControllerFastForward NoPayload
type AlexaPlaybackControllerNext ¶
type AlexaPlaybackControllerNext NoPayload
type AlexaPlaybackControllerPause ¶
type AlexaPlaybackControllerPause NoPayload
type AlexaPlaybackControllerPlay ¶
type AlexaPlaybackControllerPlay NoPayload
type AlexaPlaybackControllerPrevious ¶
type AlexaPlaybackControllerPrevious NoPayload
type AlexaPlaybackControllerRewind ¶
type AlexaPlaybackControllerRewind NoPayload
type AlexaPlaybackControllerStartOver ¶
type AlexaPlaybackControllerStartOver NoPayload
type AlexaPlaybackControllerStop ¶
type AlexaPlaybackControllerStop NoPayload
type AlexaPowerControllerTurnOff ¶
type AlexaPowerControllerTurnOff NoPayload
type AlexaPowerControllerTurnOn ¶
type AlexaPowerControllerTurnOn NoPayload
type AlexaProperty ¶
type AlexaReportStateInput ¶
type AlexaReportStateInput NoPayload
type AlexaResponse ¶
type AlexaResponse struct { Context *AlexaResponseContext `json:"context,omitempty"` Event AlexaEvent `json:"event"` }
type AlexaResponseContext ¶
type AlexaResponseContext struct {
Properties []AlexaProperty `json:"properties"`
}
type Change ¶
type Change struct { Properties []AlexaProperty `json:"properties"` Cause *ChangeCause `json:"cause,omitempty"` }
type ChangeCause ¶
type ChangeCause struct {
Type string `json:"type"`
}
type ChangeReport ¶
type ChangeReport struct {
Change Change `json:"change"`
}
type ColorHsv ¶
type ColorHsv struct { Hue float64 `json:"hue"` Saturation float64 `json:"saturation"` Brightness float64 `json:"brightness"` }
in HSV
type DirectiveInput ¶
type DirectiveInput struct {
Directive AlexaEvent `json:"directive"`
}
type Endpoint ¶
type Endpoint struct { Scope *TypeAndToken `json:"scope,omitempty"` EndpointId string `json:"endpointId"` Cookie map[string]string `json:"cookie,omitempty"` }
type EndpointSpec ¶
type EndpointSpec struct { EndpointId string `json:"endpointId"` ManufacturerName string `json:"manufacturerName"` Version string `json:"version"` FriendlyName string `json:"friendlyName"` Description string `json:"description"` DisplayCategories []string `json:"displayCategories"` Capabilities []EndpointSpecCapability `json:"capabilities"` Cookie map[string]string `json:"cookie"` }
type EndpointSpecCapability ¶
type EndpointSpecCapability struct { Type string `json:"type"` Interface string `json:"interface"` Version string `json:"version"` Properties *EndpointSpecCapabilityProperties `json:"properties,omitempty"` SupportedOperations []string `json:"supportedOperations,omitempty"` }
type EndpointSpecCapabilityNamedProperty ¶
type EndpointSpecCapabilityNamedProperty struct {
Name string `json:"name"`
}
type EndpointSpecCapabilityProperties ¶
type EndpointSpecCapabilityProperties struct { Supported []EndpointSpecCapabilityNamedProperty `json:"supported"` ProactivelyReported bool `json:"proactivelyReported"` Retrievable bool `json:"retrievable"` }
type EndpointsPayload ¶
type EndpointsPayload struct {
Endpoints []EndpointSpec `json:"endpoints"`
}
type TypeAndToken ¶
Click to show internal directories.
Click to hide internal directories.