sadiscover

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Model string `json:"model"`
	SwVer string `json:"sw_ver"`
	HwVer string `json:"hw_ver"`
	Port  int    `json:"port"`
	SaID  string `json:"sa_id"`
}

type Packet

type Packet struct {
	Head      []byte
	Len       int
	Reserve   []byte
	DeviceID  int
	SerialNum int64
	MD5Sum    []byte
	Data      []byte
}

type Protocol

type Protocol struct {
}

type Result

type Result struct {
	ID int  `json:"id"`
	Re Info `json:"result"`
}

type Server

type Server struct {
}

func NewSaDiscoverServer

func NewSaDiscoverServer() *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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