local

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

type Hub struct {
	// contains filtered or unexported fields
}

func NewHub

func NewHub() *Hub

func (*Hub) Find

func (hub *Hub) Find(endpoint string) *Server

func (*Hub) Register

func (hub *Hub) Register(endpoint string, server *Server)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) Accept

func (s *Server) Accept() (ch <-chan signaler.Session, err error)

func (*Server) Close

func (s *Server) Close() (err error)

func (*Server) Handshake

func (s *Server) Handshake(endpoint string, offer signaler.SDP) (answer *signaler.SDP, err error)

type Session

type Session struct {
	context.Context
	// contains filtered or unexported fields
}

func NewSession

func NewSession(ctx context.Context, sdp signaler.SDP) *Session

func (*Session) Description

func (sess *Session) Description() signaler.SDP

func (*Session) Reject

func (sess *Session) Reject(err error)

func (*Session) Resolve

func (sess *Session) Resolve(answer *signaler.SDP) (err error)

func (*Session) Result

func (sess *Session) Result() (answer *signaler.SDP, err error)

Jump to

Keyboard shortcuts

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