obs

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

This section is empty.

Functions

func New

func New(ctx context.Context) types.Obs

func Wrapper

func Wrapper[T any](ctx context.Context, o *Obs, f func() (T, error)) (T, error)

Types

type Config

type Config struct {
	Server   string
	Password string
}

type Obs

type Obs struct {
	Config
	Client *goobs.Client
	Cancel func()
}

func (*Obs) Cli

func (o *Obs) Cli() *goobs.Client

func (*Obs) Init

func (o *Obs) Init(ctx context.Context)

Jump to

Keyboard shortcuts

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