twitch

package
v0.0.0-...-68712e6 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context) context.Context

Types

type TokenStruct

type TokenStruct struct {
	AccessToken  string   `json:"access_token"`
	RefreshToken string   `json:"refresh_token"`
	Scope        []string `json:"scope"`
}

type Twitch

type Twitch struct {
	// contains filtered or unexported fields
}

func FromContext

func FromContext(ctx context.Context) *Twitch

func (*Twitch) Auth

func (t *Twitch) Auth() error

func (*Twitch) GetSubs

func (t *Twitch) GetSubs() ([]User, error)

type User

type User struct {
	ID   string
	Name string
}

Jump to

Keyboard shortcuts

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