device

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command int64
const (
	SWITCH_HOST Command = iota
	VIDEO_WALL
	GET_HOST
	GET_INFO
	GET_SIGNAL
)

type DeviceCredentials

type DeviceCredentials struct {
	Username string
	Password string
}

type DeviceManager

type DeviceManager struct {
	Log      *zap.Logger
	Lvl      *zap.AtomicLevel
	ReqQueue chan VSRequest
}

func (*DeviceManager) ConfigureDeviceHandler

func (dm *DeviceManager) ConfigureDeviceHandler(c *gin.Context)

func (*DeviceManager) GetConnectedHostHandler

func (dm *DeviceManager) GetConnectedHostHandler(c *gin.Context)

func (*DeviceManager) GetDeviceInfoHandler

func (dm *DeviceManager) GetDeviceInfoHandler(c *gin.Context)

func (*DeviceManager) GetStreamSignalHandler

func (dm *DeviceManager) GetStreamSignalHandler(c *gin.Context)

func (*DeviceManager) RunHTTPServer

func (dm *DeviceManager) RunHTTPServer(router *gin.Engine, port string) error

func (*DeviceManager) SetStreamHostHandler

func (dm *DeviceManager) SetStreamHostHandler(c *gin.Context)

func (*DeviceManager) SetVideoWallHandler

func (dm *DeviceManager) SetVideoWallHandler(c *gin.Context)

type RequestManager

type RequestManager struct {
	ReqQueue chan VSRequest
	Creds    DeviceCredentials
	Log      *zap.Logger
}

func (*RequestManager) HandleRequests

func (rm *RequestManager) HandleRequests()

type VSRequest

type VSRequest struct {
	Address     string
	Command     string
	RespChannel chan VSResponse
}

type VSResponse

type VSResponse struct {
	Response map[string]string
	Error    error
}

Jump to

Keyboard shortcuts

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