Documentation ¶
Index ¶
- type UI
- func (ui *UI) DisplayError(err error)
- func (*UI) InputGitUserData(ctx context.Context) (bool, string, []byte, error)
- func (ui *UI) OAuthHandlerKick(ctx context.Context, arg oauthhandler.OAuthHandlerArgument) error
- func (ui *UI) OAuthHandlerTwitch(ctx context.Context, arg oauthhandler.OAuthHandlerArgument) error
- func (ui *UI) OAuthHandlerYouTube(ctx context.Context, arg oauthhandler.OAuthHandlerArgument) error
- func (ui *UI) OnSubmittedOAuthCode(ctx context.Context, platID streamcontrol.PlatformName, code string) error
- func (ui *UI) OpenBrowser(ctx context.Context, url string) error
- func (ui *UI) Restart(ctx context.Context, msg string)
- func (ui *UI) SetLoggingLevel(ctx context.Context, level logger.Level)
- func (ui *UI) SetStatus(msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UI ¶
type UI struct { OpenBrowserFn func(context.Context, string) error OAuthURLOpenFn func(listenPort uint16, platID streamcontrol.PlatformName, authURL string) bool Belt *belt.Belt RestartFn func(context.Context, string) CodeChMap map[streamcontrol.PlatformName]chan string CodeChMapLocker xsync.Mutex SetLoggingLevelFn func(context.Context, logger.Level) InputTwitchUserInfoFn func( ctx context.Context, cfg *streamcontrol.PlatformConfig[twitch.PlatformSpecificConfig, twitch.StreamProfile], ) (bool, error) InputKickUserInfoFn func( ctx context.Context, cfg *streamcontrol.PlatformConfig[kick.PlatformSpecificConfig, kick.StreamProfile], ) (bool, error) InputYouTubeUserInfoFn func( ctx context.Context, cfg *streamcontrol.PlatformConfig[youtube.PlatformSpecificConfig, youtube.StreamProfile], ) (bool, error) InputOBSConnectInfoFn func( ctx context.Context, cfg *streamcontrol.PlatformConfig[obs.PlatformSpecificConfig, obs.StreamProfile], ) (bool, error) }
func (*UI) DisplayError ¶
func (*UI) InputGitUserData ¶
func (*UI) OAuthHandlerKick ¶
func (ui *UI) OAuthHandlerKick( ctx context.Context, arg oauthhandler.OAuthHandlerArgument, ) error
func (*UI) OAuthHandlerTwitch ¶
func (ui *UI) OAuthHandlerTwitch( ctx context.Context, arg oauthhandler.OAuthHandlerArgument, ) error
func (*UI) OAuthHandlerYouTube ¶
func (ui *UI) OAuthHandlerYouTube( ctx context.Context, arg oauthhandler.OAuthHandlerArgument, ) error
func (*UI) OnSubmittedOAuthCode ¶
func (ui *UI) OnSubmittedOAuthCode( ctx context.Context, platID streamcontrol.PlatformName, code string, ) error
Click to show internal directories.
Click to hide internal directories.