Documentation ¶
Index ¶
- type ServiceClients
- func (service *ServiceClients) ClientRTMP(deviceUniqID, channelUniqID string, conn *rtmp.Conn) error
- func (service *ServiceClients) ClientRTSP(deviceUniqID, channelUniqID string, conn *rtspv2.ProxyConn) error
- func (service *ServiceClients) ClientWebSocket(client *gin.Context)
- func (service *ServiceClients) Close() error
- func (service *ServiceClients) Name() string
- func (service *ServiceClients) New() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceClients ¶
ServiceClients - basic service structure
var Writer *ServiceClients
Writer - for clients
func (*ServiceClients) ClientRTMP ¶
func (service *ServiceClients) ClientRTMP(deviceUniqID, channelUniqID string, conn *rtmp.Conn) error
ClientRTMP - send from queue to RTMP clients
func (*ServiceClients) ClientRTSP ¶
func (service *ServiceClients) ClientRTSP(deviceUniqID, channelUniqID string, conn *rtspv2.ProxyConn) error
ClientRTSP - send from queue to RTSP clients
func (*ServiceClients) ClientWebSocket ¶
func (service *ServiceClients) ClientWebSocket(client *gin.Context)
ClientWebSocket - dispatch from the queue to WebSocket clients
func (*ServiceClients) Close ¶
func (service *ServiceClients) Close() error
Close - executed at the end of the service
func (*ServiceClients) Name ¶
func (service *ServiceClients) Name() string
Name - returns the service name
func (*ServiceClients) New ¶
func (service *ServiceClients) New() error
New - the function is executed when the service is initialized
Click to show internal directories.
Click to hide internal directories.