source

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(prefix string, factory Factory)

Types

type Factory

type Factory func(url string, options Options) (Source, error)

type Options

type Options map[string]any

func (Options) Bool

func (o Options) Bool(name string, def bool) bool

func (Options) Float64

func (o Options) Float64(name string, def float64) float64

func (Options) Int

func (o Options) Int(name string, def int) int

func (Options) Int64

func (o Options) Int64(name string, def int64) int64

type Source

type Source interface {
	Check() error
	Attach(cid string, pc *webrtc.PeerConnection) error
}

func Create

func Create(url string, options Options) (source Source, err error)

func Get

func Get(url string, options Options) (source Source, err error)

Jump to

Keyboard shortcuts

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