deviceshifusocket

package
v0.3.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBufferLength = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceShifu

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

DeviceShifu deviceshifu and socketConnection for Socket

func New

func New(deviceShifuMetadata *deviceshifubase.DeviceShifuMetaData) (*DeviceShifu, error)

New new socket deviceshifu

func (*DeviceShifu) Start

func (ds *DeviceShifu) Start(stopCh <-chan struct{}) error

Start start socket telemetry

func (*DeviceShifu) Stop

func (ds *DeviceShifu) Stop() error

Stop stop http server

type HandlerMetaData

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

HandlerMetaData MetaData for Socket Handler

type RequestBody

type RequestBody struct {
	Command string `json:"command"`
	Timeout int    `json:"timeout"`
}

RequestBody Socket Request Body

type ReturnBody

type ReturnBody struct {
	Message string `json:"message"`
	Status  int    `json:"status"`
}

ReturnBody Socket Reply Body

Jump to

Keyboard shortcuts

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