polls

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 8 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 PatchPollsBody

type PatchPollsBody struct {
	BroadcasterID string `json:"broadcaster_id"`
	ID            string `json:"id"`
	Status        string `json:"status"`
}

type Polls

type Polls struct{}

func (Polls) GetRequiredScopes

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

func (Polls) Path

func (e Polls) Path() string

func (Polls) ServeHTTP

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

func (Polls) ValidMethod

func (e Polls) ValidMethod(method string) bool

type PostPollsBody

type PostPollsBody struct {
	BroadcasterID              string                `json:"broadcaster_id"`
	Title                      string                `json:"title"`
	Choices                    []PostPollsBodyChoice `json:"choices"`
	Duration                   int                   `json:"duration"`
	BitsVotingEnabled          bool                  `json:"bits_voting_enabled"`
	BitsPerVote                int                   `json:"bits_per_vote"`
	ChannelPointsVotingEnabled bool                  `json:"channel_points_voting_enabled"`
	ChannelPointsPerVote       int                   `json:"channel_points_per_vote"`
}

type PostPollsBodyChoice

type PostPollsBodyChoice struct {
	Title string `json:"title"`
}

Jump to

Keyboard shortcuts

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