twitch

package
v0.0.0-...-f2ae4e3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(gCtx global.Context, authWrapper func(handler fasthttp.RequestHandler) fasthttp.RequestHandler, r *router.Group)

Types

type TwitchOtpRequest

type TwitchOtpRequest struct {
	Token string `json:"token"`
}

type TwitchOtpResponse

type TwitchOtpResponse struct {
	AccessToken string    `json:"access_token,omitempty"`
	ExpiresAt   time.Time `json:"expires_at,omitempty"`
	Error       string    `json:"error,omitempty"`
}

type TwitchState

type TwitchState struct {
	Token    string    `json:"token"`
	ReturnTo string    `json:"return_to"`
	Expiry   time.Time `json:"expiry"`
}

Jump to

Keyboard shortcuts

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