webrtc

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package webrtc contains the webmesh WebRTC service.

Package webrtc contains the webmesh WebRTC service.

Index

Constants

This section is empty.

Variables

View Source
var DefaultSTUNServers = []string{
	"stun:stun.l.google.com:19302",
}

DefaultSTUNServers are the default STUN servers to use.

Functions

This section is empty.

Types

type Options added in v0.3.0

type Options struct {
	ID          types.NodeID
	Wireguard   wireguard.Interface
	NodeDialer  transport.NodeDialer
	RBAC        rbac.Evaluator
	STUNServers []string
}

Options are options for the WebRTC service.

type Server

type Server struct {
	v1.UnimplementedWebRTCServer
	// contains filtered or unexported fields
}

Server is the webmesh WebRTC service.

func NewServer

func NewServer(opts Options) *Server

NewServer returns a new Server.

func (*Server) StartDataChannel

func (s *Server) StartDataChannel(stream v1.WebRTC_StartDataChannelServer) error

Jump to

Keyboard shortcuts

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