types

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component added in v1.0.3

type Component interface {
	Ready() bool
}

type HTTPServer added in v1.0.3

type HTTPServer interface {
	GetBaseUrl(host string) string // get base url for serving on host
	RegisterHandler(path string, handler http.Handler)
}

type Logger

type Logger struct{ zerolog.Logger }

func NewLogger

func NewLogger() *Logger

type Obs

type Obs interface {
	Cli() *goobs.Client // get raw client
}

type ObsBrowser added in v1.0.1

type ObsBrowser interface {
	Send(ctx context.Context, msg string) ObsSendObject // send message to obs browser html
	Dispatch(ctx context.Context, b string) error       // receive event from obs browser html
	SendChan() chan string                              // channel from server to page
}

type ObsSendObject added in v1.0.1

type ObsSendObject interface {
	Done() chan struct{}  // will be closed when action was finished
	Receive() chan string // return action progress messages channel
}

type WidgetRegistry

type WidgetRegistry interface {
	Dispatch(ctx context.Context, b string) error
	SendChan() chan string
	RenderTo(ctx context.Context, w io.Writer) error
}

type Youtube added in v1.0.3

type Youtube interface {
	Component
	GetCodeChan() chan string // get channel to return code from oauth
}

Jump to

Keyboard shortcuts

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