chat

package
v1.1.20 Latest Latest
Warning

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

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

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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Announcements added in v1.1.16

type Announcements struct{}

func (Announcements) GetRequiredScopes added in v1.1.16

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

func (Announcements) Path added in v1.1.16

func (e Announcements) Path() string

func (Announcements) ServeHTTP added in v1.1.16

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

func (Announcements) ValidMethod added in v1.1.16

func (e Announcements) ValidMethod(method string) bool

type BadgesResponse

type BadgesResponse struct {
	SetID    string          `json:"set_id"`
	Versions []BadgesVersion `json:"versions"`
}

type BadgesVersion

type BadgesVersion struct {
	ID          string  `json:"id"`
	ImageURL1X  string  `json:"image_url_1x"`
	ImageURL2X  string  `json:"image_url_2x"`
	ImageURL4X  string  `json:"image_url_4x"`
	Title       string  `json:"title"`
	Description string  `json:"description"`
	ClickAction *string `json:"click_action"`
	ClickURL    *string `json:"click_url"`
}

type ChannelBadges

type ChannelBadges struct{}

func (ChannelBadges) GetRequiredScopes

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

func (ChannelBadges) Path

func (e ChannelBadges) Path() string

func (ChannelBadges) ServeHTTP

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

func (ChannelBadges) ValidMethod

func (e ChannelBadges) ValidMethod(method string) bool

type ChannelEmotes

type ChannelEmotes struct{}

func (ChannelEmotes) GetRequiredScopes

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

func (ChannelEmotes) Path

func (e ChannelEmotes) Path() string

func (ChannelEmotes) ServeHTTP

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

func (ChannelEmotes) ValidMethod

func (e ChannelEmotes) ValidMethod(method string) bool

type Chatter added in v1.1.16

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

type Chatters added in v1.1.16

type Chatters struct{}

func (Chatters) GetRequiredScopes added in v1.1.16

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

func (Chatters) Path added in v1.1.16

func (e Chatters) Path() string

func (Chatters) ServeHTTP added in v1.1.16

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

func (Chatters) ValidMethod added in v1.1.16

func (e Chatters) ValidMethod(method string) bool

type Color added in v1.1.16

type Color struct{}

func (Color) GetRequiredScopes added in v1.1.16

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

func (Color) Path added in v1.1.16

func (e Color) Path() string

func (Color) ServeHTTP added in v1.1.16

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

func (Color) ValidMethod added in v1.1.16

func (e Color) ValidMethod(method string) bool

type EmoteSets

type EmoteSets struct{}

func (EmoteSets) GetRequiredScopes

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

func (EmoteSets) Path

func (e EmoteSets) Path() string

func (EmoteSets) ServeHTTP

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

func (EmoteSets) ValidMethod

func (e EmoteSets) ValidMethod(method string) bool

type EmotesImages

type EmotesImages struct {
	ImageURL1X string `json:"url_1x"`
	ImageURL2X string `json:"url_2x"`
	ImageURL4X string `json:"url_4x"`
}

type EmotesResponse

type EmotesResponse struct {
	ID         string       `json:"id"`
	Name       string       `json:"name"`
	Images     EmotesImages `json:"images"`
	Tier       *string      `json:"tier,omitempty"`
	EmoteType  *string      `json:"emote_type,omitempty"`
	EmoteSetID *string      `json:"emote_set_id,omitempty"`
	OwnerID    *string      `json:"owner_id,omitempty"`
	Format     []string     `json:"format"`
	Scale      []string     `json:"scale"`
	ThemeMode  []string     `json:"theme_mode"`
}

type GetColorRequestBody added in v1.1.16

type GetColorRequestBody struct {
	UserID    string `json:"user_id"`
	UserName  string `json:"user_name"`
	UserLogin string `json:"user_login"`
	Color     string `json:"color"`
}

type GetSettingsResponseUnprivileged added in v1.1.16

type GetSettingsResponseUnprivileged struct {
	BroadcasterID                 string `json:"broadcaster_id"`
	SlowMode                      bool   `json:"slow_mode"`
	SlowModeWaitTime              int    `json:"slow_mode_wait_time"`
	FollowerMode                  bool   `json:"follower_mode"`
	FollowerModeDuration          int    `json:"follower_mode_duration"`
	SubscriberMode                bool   `json:"subscriber_mode"`
	EmoteMode                     bool   `json:"emote_mode"`
	UniqueChatMode                bool   `json:"unique_chat_mode"`
	NonModeratorChatDelay         bool   `json:"-"`
	NonModeratorChatDelayDuration int    `json:"-"`
}

Only used when the user isn't a moderator

type GlobalBadges

type GlobalBadges struct{}

func (GlobalBadges) GetRequiredScopes

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

func (GlobalBadges) Path

func (e GlobalBadges) Path() string

func (GlobalBadges) ServeHTTP

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

func (GlobalBadges) ValidMethod

func (e GlobalBadges) ValidMethod(method string) bool

type GlobalEmotes

type GlobalEmotes struct{}

func (GlobalEmotes) GetRequiredScopes

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

func (GlobalEmotes) Path

func (e GlobalEmotes) Path() string

func (GlobalEmotes) ServeHTTP

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

func (GlobalEmotes) ValidMethod

func (e GlobalEmotes) ValidMethod(method string) bool

type PatchSettingsRequestBody added in v1.1.16

type PatchSettingsRequestBody struct {
	SlowMode                      *bool `json:"slow_mode"`
	SlowModeWaitTime              *int  `json:"slow_mode_wait_time"`
	FollowerMode                  *bool `json:"follower_mode"`
	FollowerModeDuration          *int  `json:"follower_mode_duration"`
	SubscriberMode                *bool `json:"subscriber_mode"`
	EmoteMode                     *bool `json:"emote_mode"`
	UniqueChatMode                *bool `json:"unique_chat_mode"`
	NonModeratorChatDelay         *bool `json:"non_moderator_chat_delay"`
	NonModeratorChatDelayDuration *int  `json:"non_moderator_chat_delay_duration"`
}

type PatchSettingsResponseBody added in v1.1.16

type PatchSettingsResponseBody struct {
	BroadcasterID                 string `json:"broadcaster_id"`
	ModeratorID                   string `json:"moderator_id"`
	SlowMode                      bool   `json:"slow_mode"`
	SlowModeWaitTime              int    `json:"slow_mode_wait_time"`
	FollowerMode                  bool   `json:"follower_mode"`
	FollowerModeDuration          int    `json:"follower_mode_duration"`
	SubscriberMode                bool   `json:"subscriber_mode"`
	EmoteMode                     bool   `json:"emote_mode"`
	UniqueChatMode                bool   `json:"unique_chat_mode"`
	NonModeratorChatDelay         bool   `json:"non_moderator_chat_delay"`
	NonModeratorChatDelayDuration int    `json:"non_moderator_chat_delay_duration"`
}

type PostAnnouncementsRequestBody added in v1.1.16

type PostAnnouncementsRequestBody struct {
	Message string `json:"message"`
	Color   string `json:"color"`
}

type PostShoutoutsRequestBody added in v1.1.16

type PostShoutoutsRequestBody struct {
	SlowMode                      *bool `json:"slow_mode"`
	SlowModeWaitTime              *int  `json:"slow_mode_wait_time"`
	FollowerMode                  *bool `json:"follower_mode"`
	FollowerModeDuration          *int  `json:"follower_mode_duration"`
	SubscriberMode                *bool `json:"subscriber_mode"`
	EmoteMode                     *bool `json:"emote_mode"`
	UniqueChatMode                *bool `json:"unique_chat_mode"`
	NonModeratorChatDelay         *bool `json:"non_moderator_chat_delay"`
	NonModeratorChatDelayDuration *int  `json:"non_moderator_chat_delay_duration"`
}

type Settings added in v1.1.16

type Settings struct{}

func (Settings) GetRequiredScopes added in v1.1.16

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

func (Settings) Path added in v1.1.16

func (e Settings) Path() string

func (Settings) ServeHTTP added in v1.1.16

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

func (Settings) ValidMethod added in v1.1.16

func (e Settings) ValidMethod(method string) bool

type Shoutouts added in v1.1.16

type Shoutouts struct{}

func (Shoutouts) GetRequiredScopes added in v1.1.16

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

func (Shoutouts) Path added in v1.1.16

func (e Shoutouts) Path() string

func (Shoutouts) ServeHTTP added in v1.1.16

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

func (Shoutouts) ValidMethod added in v1.1.16

func (e Shoutouts) ValidMethod(method string) bool

Jump to

Keyboard shortcuts

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