hype_train

package
v1.1.23 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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