users

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 10 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blocks

type Blocks struct{}

func (Blocks) GetRequiredScopes

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

func (Blocks) Path

func (e Blocks) Path() string

func (Blocks) ServeHTTP

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

func (Blocks) ValidMethod

func (e Blocks) ValidMethod(method string) bool

type FollowsEndpoint

type FollowsEndpoint struct{}

func (FollowsEndpoint) GetRequiredScopes

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

func (FollowsEndpoint) Path

func (e FollowsEndpoint) Path() string

func (FollowsEndpoint) ServeHTTP

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

func (FollowsEndpoint) ValidMethod

func (e FollowsEndpoint) ValidMethod(method string) bool

type PostFollowBody

type PostFollowBody struct {
	ToID   string `json:"to_id"`
	FromID string `json:"from_id"`
}

type User

type User struct {
	ID              string `db:"id" json:"id"`
	UserLogin       string `db:"user_login" json:"login"`
	DisplayName     string `db:"display_name" json:"display_name"`
	Email           string `db:"email" json:"email,omitempty"`
	UserType        string `db:"user_type" json:"type"`
	BroadcasterType string `db:"broadcaster_type" json:"broadcaster_type"`
	UserDescription string `db:"user_description" json:"description"`
	CreatedAt       string `db:"created_at" json:"created_at"`
	ModifiedAt      string `db:"modified_at" json:"-"`
	ProfileImageURL string `dbi:"false" json:"profile_image_url" `
	OfflineImageURL string `dbi:"false" json:"offline_image_url" `
	ViewCount       int    `dbi:"false" json:"view_count"`
}

type UsersEndpoint

type UsersEndpoint struct{}

func (UsersEndpoint) GetRequiredScopes

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

func (UsersEndpoint) Path

func (e UsersEndpoint) Path() string

func (UsersEndpoint) ServeHTTP

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

func (UsersEndpoint) ValidMethod

func (e UsersEndpoint) ValidMethod(method string) bool

Jump to

Keyboard shortcuts

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