Versions in this module Expand all Collapse all v1 v1.0.0 Oct 30, 2024 Changes in this version + var Onplate = make(chan string) + type AnNiuModel struct + WdLen int + type BaseModel struct + Brand string + NickName string + TypeName string + type BaseTxModel struct + Method string + SerialInfo Serial + TcpInfo Tcp + WsInfo Ws + type ChePaiModel struct + MediaInfo Media + TcpPort int + func (c *ChePaiModel) GetPlate() + func (c *ChePaiModel) SendCmd(conn net.Conn, cmd string) + type CzSoftDevice struct + AnNiu []AnNiuModel + ChePai []ChePaiModel + DaoZha []DaoZhaModel + DiGan []any + DukaQi []DukaQiModel + GuangShan []GuangShanModel + HongLvDeng []any + Led []any + LeiDa []any + QuanJing []QuanJingModel + YiBiao []YiBiaoModel + type DaoZhaModel struct + WdLen int + type DukaQiModel struct + WdLen int + type GuangShanModel struct + WdLen int + type Media struct + ChannelID string + Ip string + Port int + Pwd string + Uid string + Uuid string + func (m *Media) GetImg(ctx g.Ctx) + func (m *Media) GetVideo(ctx g.Ctx) + func (m *Media) GetWsFlvUrl(ctx g.Ctx) (_url string) + type QuanJingModel struct + MediaInfo Media + type Serial struct + BaudRate int + DataBits int + Parity int + PortName string + StopBits int + func (s *Serial) ComList() (_list []string) + func (s *Serial) GetConn() (conn serial.Port, err error) + func (s *Serial) Read(_conn serial.Port) (data []byte) + func (s *Serial) Write(_conn serial.Port, buffer []byte) (n int, err error) + type Tcp struct + Ip string + Port int + func (t *Tcp) GetConn() (conn net.Conn, err error) + func (t *Tcp) Read(_conn net.Conn) (data []byte) + func (t *Tcp) Write(_conn net.Conn, buffer []byte) (n int, err error) + type Ws struct + Ip string + Port int + func (t *Ws) GetConn(_ctx g.Ctx) (conn *websocket.Conn, err error) + func (t *Ws) Read(_conn *websocket.Conn) (data []byte) + func (t *Ws) Write(_conn *websocket.Conn, buffer []byte) (err error) + type YiBiaoModel struct + WdLen int + WdNum int