bits

package
v1.1.25 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: Apache-2.0 Imports: 13 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitsLeaderboard

type BitsLeaderboard struct{}

func (BitsLeaderboard) GetRequiredScopes

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

func (BitsLeaderboard) Path

func (e BitsLeaderboard) Path() string

func (BitsLeaderboard) ServeHTTP

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

func (BitsLeaderboard) ValidMethod

func (e BitsLeaderboard) ValidMethod(method string) bool

type BitsLeaderboardResponse

type BitsLeaderboardResponse struct {
	UserID    string `json:"user_id"`
	UserLogin string `json:"user_login"`
	UserName  string `json:"user_name"`
	Rank      int    `json:"rank"`
	Score     int    `json:"score"`
}

type Cheermote

type Cheermote struct {
	MinBits        int            `json:"min_bits"`
	ID             string         `json:"id"`
	Color          string         `json:"color"`
	Images         CheermoteImage `json:"images"`
	CanCheer       bool           `json:"can_cheer"`
	ShowInBitsCard bool           `json:"show_in_bits_card"`
}

type CheermoteImage

type CheermoteImage struct {
	Dark  CheermoteImageType `json:"dark"`
	Light CheermoteImageType `json:"light"`
}

type CheermoteImageSizes

type CheermoteImageSizes struct {
	One         string `json:"1"`
	OneAndAHalf string `json:"1.5"`
	Two         string `json:"2"`
	Three       string `json:"3"`
	Four        string `json:"4"`
}

type CheermoteImageType

type CheermoteImageType struct {
	Animated CheermoteImageSizes `json:"animated"`
	Static   CheermoteImageSizes `json:"static"`
}

type Cheermotes

type Cheermotes struct{}

func (Cheermotes) GetRequiredScopes

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

func (Cheermotes) Path

func (e Cheermotes) Path() string

func (Cheermotes) ServeHTTP

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

func (Cheermotes) ValidMethod

func (e Cheermotes) ValidMethod(method string) bool

type CheermotesResponse

type CheermotesResponse struct {
	Data []CheermotesResponseData `json:"data"`
}

type CheermotesResponseData added in v1.1.16

type CheermotesResponseData struct {
	Prefix       string      `json:"prefix"`
	Order        int         `json:"order"`
	LastUpdated  string      `json:"last_updated"`
	IsCharitable bool        `json:"is_charitable"`
	Tiers        []Cheermote `json:"tiers"`
	Type         string      `json:"type"`
}

Jump to

Keyboard shortcuts

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