handlers

package
v0.0.0-...-c6ca42b Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceConnectionInfo

type DeviceConnectionInfo struct {
	Conn     net.Conn
	Protocol devices.DeviceProtocol
}

type TcpHandler

type TcpHandler struct {
	// contains filtered or unexported fields
}

func NewTcpHandler

func NewTcpHandler(remoteStoreClient store.CustomAvlDataStoreClient, storeType string) TcpHandler

func (*TcpHandler) GetConnInfoByIMEI

func (t *TcpHandler) GetConnInfoByIMEI(imei string) (DeviceConnectionInfo, bool)

func (*TcpHandler) HandleConnection

func (t *TcpHandler) HandleConnection(conn net.Conn)

func (*TcpHandler) VerifyDevice

func (t *TcpHandler) VerifyDevice(deviceID string, detectedProtocol types.DeviceProtocolType) (types.DeviceType, error)

type WebSocketHandler

type WebSocketHandler struct {
	// contains filtered or unexported fields
}

func NewWebSocketHandler

func NewWebSocketHandler(remoteStoreClient store.CustomAvlDataStoreClient, storeType string) WebSocketHandler

func (*WebSocketHandler) HandleMessage

func (w *WebSocketHandler) HandleMessage(conn *websocket.Conn)

HandleMessage processes the incoming message and parses it based on action type

Jump to

Keyboard shortcuts

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