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
Click to show internal directories.
Click to hide internal directories.