Documentation
¶
Overview ¶
Package webrtc contains a WebRTC server.
Index ¶
- Variables
- type Server
- func (s *Server) APISessionsGet(uuid uuid.UUID) (*defs.APIWebRTCSession, error)
- func (s *Server) APISessionsKick(uuid uuid.UUID) error
- func (s *Server) APISessionsList() (*defs.APIWebRTCSessionList, error)
- func (s *Server) Close()
- func (s *Server) Initialize() error
- func (s *Server) Log(level logger.Level, format string, args ...any)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSessionNotFound = errors.New("session not found")
ErrSessionNotFound is returned when a session is not found.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Address string
DumpPackets bool
Encryption bool
ServerKey string
ServerCert string
AllowOrigins []string
TrustedProxies conf.IPNetworks
ReadTimeout conf.Duration
WriteTimeout conf.Duration
UDPReadBufferSize uint
LocalUDPAddress string
LocalTCPAddress string
SupportsIPv6 bool
IPsFromInterfaces bool
IPsFromInterfacesList []string
AdditionalHosts []string
ICEServers []conf.WebRTCICEServer
STUNGatherTimeout conf.Duration
HandshakeTimeout conf.Duration
TrackGatherTimeout conf.Duration
ExternalCmdPool *externalcmd.Pool
Metrics serverMetrics
PathManager serverPathManager
Parent serverParent
// contains filtered or unexported fields
}
Server is a WebRTC server.
func (*Server) APISessionsGet ¶
APISessionsGet implements defs.APIWebRTCServer.
func (*Server) APISessionsKick ¶
APISessionsKick implements defs.APIWebRTCServer.
func (*Server) APISessionsList ¶
func (s *Server) APISessionsList() (*defs.APIWebRTCSessionList, error)
APISessionsList implements defs.APIWebRTCServer.
Click to show internal directories.
Click to hide internal directories.