types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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 Connector

type Connector interface {
	Handle(method string, arg interface{})
	Init() Connector
}

type Logger

type Logger struct{ zerolog.Logger }

func NewLogger

func NewLogger() *Logger

type Obs

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

type Sound

type Sound interface {
	Play(ctx context.Context, fname string) error
}

type WebMessage

type WebMessage struct {
	Module string          `json:"module"`
	Method string          `json:"method"`
	Arg    json.RawMessage `json:"arg"`
}

type WidgetRegistry

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

Jump to

Keyboard shortcuts

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