Documentation ¶
Overview ¶
Package rtmp contains a RTMP server.
Index ¶
- Variables
- type Server
- func (s *Server) APIConnsGet(uuid uuid.UUID) (*defs.APIRTMPConn, error)
- func (s *Server) APIConnsKick(uuid uuid.UUID) error
- func (s *Server) APIConnsList() (*defs.APIRTMPConnList, 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 ErrConnNotFound = errors.New("connection not found")
ErrConnNotFound is returned when a connection is not found.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Address string ReadTimeout conf.StringDuration WriteTimeout conf.StringDuration WriteQueueSize int IsTLS bool ServerCert string ServerKey string RTSPAddress string RunOnConnect string RunOnConnectRestart bool RunOnDisconnect string ExternalCmdPool *externalcmd.Pool PathManager serverPathManager Parent serverParent // contains filtered or unexported fields }
Server is a RTMP server.
func (*Server) APIConnsGet ¶
APIConnsGet is called by api.
func (*Server) APIConnsKick ¶
APIConnsKick is called by api.
func (*Server) APIConnsList ¶
func (s *Server) APIConnsList() (*defs.APIRTMPConnList, error)
APIConnsList is called by api.
Click to show internal directories.
Click to hide internal directories.