hype_train

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HypeTrainContribution

type HypeTrainContribution struct {
	Total int    `json:"total"`
	Type  string `json:"type"`
	User  string `json:"user"`
}

type HypeTrainEventData

type HypeTrainEventData struct {
	ID               string                  `json:"id"`
	BroadcasterID    string                  `json:"broadcaster_id"`
	CooldownEndTime  string                  `json:"cooldown_end_time"`
	ExpiresAt        string                  `json:"expires_at"`
	Goal             int                     `json:"goal"`
	LastContribution HypeTrainContribution   `json:"last_contribution"`
	Level            int                     `json:"level"`
	StartedAt        string                  `json:"started_at"`
	TopContributions []HypeTrainContribution `json:"top_contributions"`
	Total            int                     `json:"total"`
}

type HypeTrainEvents

type HypeTrainEvents struct{}

func (HypeTrainEvents) GetRequiredScopes

func (e HypeTrainEvents) GetRequiredScopes(method string) []string

func (HypeTrainEvents) Path

func (e HypeTrainEvents) Path() string

func (HypeTrainEvents) ServeHTTP

func (e HypeTrainEvents) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (HypeTrainEvents) ValidMethod

func (e HypeTrainEvents) ValidMethod(method string) bool

type HypeTrainEventsResponse

type HypeTrainEventsResponse struct {
	ID             string             `json:"id"`
	EventType      string             `json:"event_type"`
	EventTimestamp string             `json:"event_timestamp"`
	Version        string             `json:"version"`
	EventData      HypeTrainEventData `json:"event_data"`
}

Jump to

Keyboard shortcuts

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