Documentation
¶
Overview ¶
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
View Source
const ( EventSubMessageTypeNotification = "notification" EventSubMessageTypeVerification = "webhook_callback_verification" EventSubMessageTypeRevocation = "revocation" )
Variables ¶
This section is empty.
Functions ¶
func Fire ¶
func Fire(p TriggerParameters) (string, error)
Fire emits an event using the TriggerParameters defined above.
func ForwardEvent ¶
func ForwardEvent(p ForwardParamters) (*http.Response, error)
func RefireEvent ¶
func RefireEvent(id string, p TriggerParameters) (string, error)
Types ¶
type ForwardParamters ¶
type TriggerParameters ¶
type TriggerParameters struct {
Event string
Transport string
IsAnonymous bool
FromUser string
ToUser string
GiftUser string
EventStatus string
SubscriptionStatus string
ItemID string
Cost int64
ForwardAddress string
Secret string
Verbose bool
Count int
Description string
ItemName string
GameID string
Tier string
Timestamp string
SubscriptionID string
EventMessageID string
CharityCurrentValue int
CharityTargetValue int
ClientID string
Version string
WebSocketClient string
BanStartTimestamp string
BanEndTimestamp string
}
TriggerParameters defines the parameters used to emit an event.
Click to show internal directories.
Click to hide internal directories.