template

package
v2.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed webrtc-client.js
	ClientJS template.JS

	//go:embed sd-streams-polyfill.min.js
	PolyfillJS template.JS
)

Functions

func Error

func Error(w io.Writer, errTitle, errDescription, pageTitle string) error

func WriteTo

func WriteTo(w io.Writer, ctx Context) error

Types

type Context

type Context struct {
	AutoConnect bool

	RTCConfigJSON string
	OfferJSON     string

	Head       template.HTML
	ClientJS   template.JS
	PolyfillJS template.JS
}

Jump to

Keyboard shortcuts

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