webrtc

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 15 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

This section is empty.

Functions

This section is empty.

Types

type Options added in v0.3.0

type Options struct {
	ID          string
	Storage     storage.MeshStorage
	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