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 ...interface{})
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 Encryption bool ServerKey string ServerCert string AllowOrigin string TrustedProxies conf.IPNetworks ReadTimeout conf.StringDuration WriteQueueSize int LocalUDPAddress string LocalTCPAddress string IPsFromInterfaces bool IPsFromInterfacesList []string AdditionalHosts []string ICEServers []conf.WebRTCICEServer HandshakeTimeout conf.StringDuration TrackGatherTimeout conf.StringDuration ExternalCmdPool *externalcmd.Pool PathManager serverPathManager Parent serverParent // contains filtered or unexported fields }
Server is a WebRTC server.
func (*Server) APISessionsGet ¶
APISessionsGet is called by api.
func (*Server) APISessionsKick ¶
APISessionsKick is called by api.
func (*Server) APISessionsList ¶
func (s *Server) APISessionsList() (*defs.APIWebRTCSessionList, error)
APISessionsList is called by api.
Click to show internal directories.
Click to hide internal directories.