listen

package
v0.0.0-...-4c708ec Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDashboardTokenLifetime time.Duration = 24 * time.Hour
)

Variables

View Source
var (
	TwitchTokenScopes []string = []string{
		"channel:moderate",
		"chat:edit",
		"chat:read",
		"user:read:email",
	}
)

Functions

func NewListenCommand

func NewListenCommand(logger *logging.Logger) *cobra.Command

func RunServer

func RunServer(ctx context.Context, logger logr.Logger, location string, redirectURI string, controller *twitch.Controller, userController users.Controller, tokenController tokens.Controller) error

This server is used to provide an OAuth token to the server for the user

Types

type LoginEvent

type LoginEvent struct {
	Username string
}

Jump to

Keyboard shortcuts

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