clients

package
v0.0.0-...-5ecf4e5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceClients

type ServiceClients struct {
	ServiceName     string
	Logger          *logrus.Logger
	CheckErrorCount int
}

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

Jump to

Keyboard shortcuts

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