streamelements

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventRedemption = "redemption"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemType

type ItemType string
const (
	ItemPerk   ItemType = "perk"
	ItemEffect ItemType = "effect"
	ItemCode   ItemType = "code"
)

type Redemption

type Redemption struct {
	RedeemerType string        `json:"redeemerType"`
	Completed    bool          `json:"completed"`
	Input        []interface{} `json:"input"`
	ID           string        `json:"_id"`
	Channel      string        `json:"channel"`
	Redeemer     struct {
		ID        string `json:"_id"`
		Avatar    string `json:"avatar"`
		Username  string `json:"username"`
		Inactive  bool   `json:"inactive"`
		IsPartner bool   `json:"isPartner"`
	} `json:"redeemer"`
	Item struct {
		Alert struct {
			Graphics struct {
				Duration int    `json:"duration"`
				Src      string `json:"src"`
				Type     string `json:"type"`
			} `json:"graphics"`
			Audio struct {
				Volume float64     `json:"volume"`
				Src    interface{} `json:"src"`
			} `json:"audio"`
			Enabled bool `json:"enabled"`
		} `json:"alert"`
		UserInput []interface{} `json:"userInput"`
		ID        string        `json:"_id"`
		Name      string        `json:"name"`
		Type      ItemType      `json:"type"`
		Cost      int           `json:"cost"`
	} `json:"item"`
	Source    string    `json:"source"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

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