websocket

package
v0.0.0-...-68b20d9 Latest Latest
Warning

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

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

Documentation

Overview

******************************************************************************

  • Copyright 2017 Dell Inc.
  • Copyright (c) 2019 Intel Corporation *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. ******************************************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLang

func CheckLang(c *wsClient, data interface{}, code dtos.WsCode)

* receive: {"code":10003,"data":{"lang":"zh"}}

func DeviceLibraryDelete

func DeviceLibraryDelete(c *wsClient, data interface{}, code dtos.WsCode)

* receive: {"code":10003,"data":{"id":"3208327514"}}

func DeviceLibraryUpgrade

func DeviceLibraryUpgrade(c *wsClient, data interface{}, code dtos.WsCode)

* receive: {"code":10001,"data":{"id":"3208327514","version":"2.0.1"}}

func DeviceServiceLog

func DeviceServiceLog(c *wsClient, data interface{}, code dtos.WsCode)

* receive: {"code":10004,"data":{"id":"123291"}}

func DeviceServiceRunStatus

func DeviceServiceRunStatus(c *wsClient, data interface{}, code dtos.WsCode)

* receive: {"code":10002,"data":{"id":"935769","run_status":1}}

func StartReadServiceLog

func StartReadServiceLog(c *wsClient, serviceId, logFilePath string, code dtos.WsCode)

func StopReadServiceLog

func StopReadServiceLog(c *wsClient, serviceId string, code dtos.WsCode)

Types

type SystemCheckLangReq

type SystemCheckLangReq struct {
	Lang string `json:"lang"`
}

type WsData

type WsData struct {
	Code dtos.WsCode `json:"code"`
	Data interface{} `json:"data"`
}

type WsResponse

type WsResponse struct {
	Code dtos.WsCode               `json:"code"`
	Data httphelper.CommonResponse `json:"data"`
}

type WsServer

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

func NewServer

func NewServer(dic *di.Container) *WsServer

func (*WsServer) Handle

func (s *WsServer) Handle(c *gin.Context)

Jump to

Keyboard shortcuts

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