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
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
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
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func Fire(p TriggerParameters) (string, error)
- func RefireEvent(id string, p TriggerParameters) (string, error)
- func ValidTransports() []string
- func ValidTriggers() []string
- type CheerParams
- type FollowParams
- type ForwardParamters
- type RedemptionParams
- type RewardParams
- type SubscribeParams
- type TransactionParams
- type TriggerParameters
- type TriggerResponse
- func GenerateCheerBody(p CheerParams) (TriggerResponse, error)
- func GenerateFollowBody(p FollowParams) (TriggerResponse, error)
- func GenerateRedemptionBody(p RedemptionParams) (TriggerResponse, error)
- func GenerateRewardBody(p RewardParams) (TriggerResponse, error)
- func GenerateSubBody(params SubscribeParams) (TriggerResponse, error)
- func GenerateTransactionBody(params TransactionParams) (TriggerResponse, error)
Constants ¶
const TransportEventSub = "eventsub"
const TransportWebSub = "websub"
const TransportWebsockets = "websockets"
Variables ¶
This section is empty.
Functions ¶
func Fire ¶
func Fire(p TriggerParameters) (string, error)
Fire emits an event using the TriggerParameters defined above.
func RefireEvent ¶
func RefireEvent(id string, p TriggerParameters) (string, error)
func ValidTransports ¶
func ValidTransports() []string
func ValidTriggers ¶
func ValidTriggers() []string
Types ¶
type CheerParams ¶
type FollowParams ¶
type ForwardParamters ¶
type RedemptionParams ¶
type RewardParams ¶
type SubscribeParams ¶
type TransactionParams ¶
type TriggerParameters ¶
type TriggerParameters struct {
Event string
Transport string
IsAnonymous bool
FromUser string
ToUser string
GiftUser string
Status string
ItemId string
Cost int64
ForwardAddress string
Secret string
Verbose bool
Count int
}
TriggerParameters defines the parameters used to emit an event.
type TriggerResponse ¶
type TriggerResponse struct {
ID string
JSON []byte
FromUser string
ToUser string
Timestamp string
}
func GenerateCheerBody ¶
func GenerateCheerBody(p CheerParams) (TriggerResponse, error)
func GenerateFollowBody ¶
func GenerateFollowBody(p FollowParams) (TriggerResponse, error)
func GenerateRedemptionBody ¶
func GenerateRedemptionBody(p RedemptionParams) (TriggerResponse, error)
func GenerateRewardBody ¶
func GenerateRewardBody(p RewardParams) (TriggerResponse, error)
func GenerateSubBody ¶
func GenerateSubBody(params SubscribeParams) (TriggerResponse, error)
func GenerateTransactionBody ¶
func GenerateTransactionBody(params TransactionParams) (TriggerResponse, error)