g7

package
v0.0.0-...-005f201 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateStart = iota
	StateFindStart
	StateFindEnd
	StateDone
)

Variables

This section is empty.

Functions

func Do

func Do(r Request) (err error)

func LoadExcelG7

func LoadExcelG7(name string, sheet string) (truckHis model.TruckHis, err error)

Types

type DataHandler

type DataHandler struct {
	C chan Request
	// contains filtered or unexported fields
}

func (*DataHandler) Req

func (d *DataHandler) Req(r Request)

Req 任务入口

func (*DataHandler) Run

func (d *DataHandler) Run(ctx context.Context)

type Request

type Request struct {
	StartPoint model.Point // 开始点
	EndPoint   model.Point // 结束点
	Date       int64       // 日期
	DateStr    string      // 格式化日期yyyy-mm-dd(GPS数据只有月日)
	TruckNo    string      // 车牌号
	DataFile   string      // 数据文件名
	DataSheet  string      // excel sheet name
	Threshold  int         // 偏移阈值(KM)
}

Request 请求

Jump to

Keyboard shortcuts

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