jt

package module
v0.0.0-...-58ea8ec Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(b []byte) xproto.IClient

Types

type Client

type Client struct {
	*xproto.Conn
	// contains filtered or unexported fields
}

Client jt8080

func (*Client) OnDecodec

func (p *Client) OnDecodec(data []byte) (int, error)

OnDecodec 协议解析回调

func (*Client) OnHandle

func (p *Client) OnHandle() error

OnHandle 协议处理回调

func (*Client) OnIdle

func (p *Client) OnIdle(rect, sendt *time.Time) error

func (*Client) OnInit

func (p *Client) OnInit(ctx *xproto.Conn)

OnInit 初始化回调

func (*Client) OnRecvTerminalProperty

func (p *Client) OnRecvTerminalProperty() error

func (*Client) OnRecvTerminalUpgrade

func (p *Client) OnRecvTerminalUpgrade() error

func (*Client) Request

func (p *Client) Request(cmd xproto.ReqType, s interface{}, r interface{}) error

Request 发送请求

type Jt8202

type Jt8202 struct {
	Interval      uint16 `json:"interval"`
	EffectiveTime uint32 `json:"effectiveTime"`
}

8.21 临时位置跟踪控制

type Jt8203

type Jt8203 struct {
	AlarmSerial uint16 `json:"alarmSerial"`
	AlarmType   uint32 `json:"alarmType"`
}

8.22 人工确认报警消息

type Jt8300

type Jt8300 struct {
	Flag uint8  `json:"flag"`
	Text string `json:"text"`
}

8.23 文本信息下发

type Jt8302

type Jt8302 struct {
	Flag     uint8  `json:"flag"`
	Question string `json:"text"`
	Answers  []struct {
		Id      uint8  `json:"id"`
		Content string `json:"content"`
	} `json:"answers"`
}

8.23 文本信息下发

type Jt8303

type Jt8303 struct {
	Type    uint8 `json:"type"`
	Message []struct {
		Type uint8  `json:"type"`
		Name string `json:"name"`
	} `json:"message"`
}

8.28 信息点播菜单设置

type Jt8304

type Jt8304 struct {
	Type    uint8  `json:"type"`
	Content string `json:"content"`
}

8.30 信息服务

type Jt8400

type Jt8400 struct {
	Type        uint8  `json:"type"`
	PhoneNumber string `json:"phoneNumber"`
}

8.31 电话回拨

type Jt8401

type Jt8401 struct {
	Type     uint8 `json:"type"`
	Contacts []struct {
		Type        uint8  `json:"type"`
		PhoneNumber string `json:"phoneNumber"`
		Name        string `json:"name"`
	} `json:"contacts"`
}

8.32 设置电话本

type Jt8600

type Jt8600 struct {
	Action  uint8 `json:"action"`
	Regions []struct {
		Id          uint32  `json:"id"`
		Attr        uint16  `json:"attr"`
		La          float32 `json:"latitude"`
		Lo          float32 `json:"longitude"`
		Ra          uint32  `json:"radius"`
		St          string  `json:"startTime"`
		Et          string  `json:"endTime"`
		MaxSpd      uint16  `json:"maxSpeed"`
		KeepTime    uint8   `json:"keepTime"`
		MaxNightSpd uint16  `json:"maxNightSpeed"`
		Name        string  `json:"name"`
	} `json:"regions"`
}

圆形区域

type Jt8601O3

type Jt8601O3 struct {
	Ids []uint32 `json:"id"`
}

type Jt8602

type Jt8602 struct {
	Action  uint8 `json:"action"`
	Regions []struct {
		Id          uint32  `json:"id"`
		Attr        uint16  `json:"attr"`
		LeftTopLa   float32 `json:"leftTopLatitude"`
		LeftTopLo   float32 `json:"leftTopLongitude"`
		RightBotLa  float32 `json:"rightBotLatitude"`
		RightBotLo  float32 `json:"rightBotLongitude"`
		St          string  `json:"startTime"`
		Et          string  `json:"endTime"`
		MaxSpd      uint16  `json:"maxSpeed"`
		KeepTime    uint8   `json:"keepTime"`
		MaxNightSpd uint16  `json:"maxNightSpeed"`
		Name        string  `json:"name"`
	} `json:"regions"`
}

矩形区域

type Jt8604

type Jt8604 struct {
	Id       uint32 `json:"id"`
	Attr     uint16 `json:"attr"`
	St       string `json:"startTime"`
	Et       string `json:"endTime"`
	MaxSpd   uint16 `json:"maxSpeed"`
	KeepTime uint8  `json:"keepTime"`
	Dots     []struct {
		La float32 `json:"latitude"`
		Lo float32 `json:"longitude"`
	} `json:"dots"`
	MaxNightSpd uint16 `json:"maxNightSpeed"`
	Name        string `json:"name"`
}

多边形区域

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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