app

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Key = struct{}{}

Functions

func PutToApp

func PutToApp(ctx context.Context, obj any) context.Context

Types

type App

type App struct {
	Cfg        *config.Config
	Log        *types.Logger
	Widget     types.WidgetRegistry
	Obs        types.Obs
	ObsBrowser types.ObsBrowser
	HTTP       types.HTTPServer
	Youtube    types.Youtube
}

container with all my goodies

func FromContext

func FromContext(ctx context.Context) *App

func (*App) ExecuteInitStage added in v1.0.3

func (a *App) ExecuteInitStage(ctx context.Context, stage int) error

only on interface fields

func (*App) Logger added in v1.0.3

func (a *App) Logger() zerolog.Logger

Logger for subsystem and function

Jump to

Keyboard shortcuts

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