channels

package
v1.1.22 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 11 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

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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	ID             string   `db:"id" json:"broadcaster_id"`
	UserLogin      string   `db:"user_login" json:"broadcaster_login"`
	DisplayName    string   `db:"display_name" json:"broadcaster_name"`
	CategoryID     string   `db:"category_id" json:"game_id"`
	CategoryName   string   `db:"category_name" json:"game_name" dbi:"false"`
	Title          string   `db:"title" json:"title"`
	Language       string   `db:"stream_language" json:"broadcaster_language"`
	Delay          int      `dbi:"false" json:"delay"`
	Tags           []string `dbi:"false" json:"tags"`
	BrandedContent bool     `dbi:"false" json:"is_branded_content"`

	ContentClassificationLabels []string `dbi:"false" json:"content_classification_labels"`
}

type CommercialEndpoint

type CommercialEndpoint struct{}

func (CommercialEndpoint) GetRequiredScopes

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

func (CommercialEndpoint) Path

func (e CommercialEndpoint) Path() string

func (CommercialEndpoint) ServeHTTP

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

func (CommercialEndpoint) ValidMethod

func (e CommercialEndpoint) ValidMethod(method string) bool

type CommercialEndpointRequest

type CommercialEndpointRequest struct {
	Length        *int   `json:"length"`
	BroadcasterID string `json:"broadcaster_id"`
}

type CommercialEndpointResponse

type CommercialEndpointResponse struct {
	Length     int    `json:"length"`
	Message    string `json:"message"`
	RetryAfter int    `json:"retry_after"`
}

type Editors

type Editors struct{}

func (Editors) GetRequiredScopes

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

func (Editors) Path

func (e Editors) Path() string

func (Editors) ServeHTTP

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

func (Editors) ValidMethod

func (e Editors) ValidMethod(method string) bool

type FollowedEndpoint added in v1.1.22

type FollowedEndpoint struct{}

func (FollowedEndpoint) GetRequiredScopes added in v1.1.22

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

func (FollowedEndpoint) Path added in v1.1.22

func (e FollowedEndpoint) Path() string

func (FollowedEndpoint) ServeHTTP added in v1.1.22

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

func (FollowedEndpoint) ValidMethod added in v1.1.22

func (e FollowedEndpoint) ValidMethod(method string) bool

type FollowersEndpoint added in v1.1.22

type FollowersEndpoint struct{}

func (FollowersEndpoint) GetRequiredScopes added in v1.1.22

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

func (FollowersEndpoint) Path added in v1.1.22

func (e FollowersEndpoint) Path() string

func (FollowersEndpoint) ServeHTTP added in v1.1.22

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

func (FollowersEndpoint) ValidMethod added in v1.1.22

func (e FollowersEndpoint) ValidMethod(method string) bool

type GetFollowedEndpointResponseData added in v1.1.22

type GetFollowedEndpointResponseData struct {
	BroadcasterID    string `json:"broadcaster_id"`
	BroadcasterLogin string `json:"broadcaster_login"`
	BroadcasterName  string `json:"broadcaster_name"`
	FollowedAt       string `json:"followed_at"`
}

type GetFollowersEndpointResponseData added in v1.1.22

type GetFollowersEndpointResponseData struct {
	UserID     string `json:"user_id"`
	UserLogin  string `json:"user_login"`
	UserName   string `json:"user_name"`
	FollowedAt string `json:"followed_at"`
}

type GetVIPsResponseBody added in v1.1.16

type GetVIPsResponseBody struct {
	UserID    string `json:"user_id"`
	UserName  string `json:"user_name"`
	UserLogin string `json:"user_login"`
}

type InformationEndpoint

type InformationEndpoint struct{}

func (InformationEndpoint) GetRequiredScopes

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

func (InformationEndpoint) Path

func (e InformationEndpoint) Path() string

func (InformationEndpoint) ServeHTTP

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

func (InformationEndpoint) ValidMethod

func (e InformationEndpoint) ValidMethod(method string) bool

type PatchInformationEndpointRequest

type PatchInformationEndpointRequest struct {
	GameID              string `json:"game_id"`
	BroadcasterLanguage string `json:"broadcaster_language"`
	Title               string `json:"title"`
	Delay               *int   `json:"delay"`
	BrandedContent      *bool  `json:"is_branded_content"`
	// TODO: tags
	ContentClassificationLabels []PatchInformationEndpointRequestLabel `json:"content_classification_labels"`
}

type PatchInformationEndpointRequestLabel added in v1.1.20

type PatchInformationEndpointRequestLabel struct {
	ID        string `json:"id"`
	IsEnabled bool   `json:"is_enabled"`
}

type Vips added in v1.1.16

type Vips struct{}

func (Vips) GetRequiredScopes added in v1.1.16

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

func (Vips) Path added in v1.1.16

func (e Vips) Path() string

func (Vips) ServeHTTP added in v1.1.16

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

func (Vips) ValidMethod added in v1.1.16

func (e Vips) ValidMethod(method string) bool

Jump to

Keyboard shortcuts

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