services

package
v0.0.0-...-0ba4654 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseSuccess = Resp(0, "success")
)

Functions

func AddMapHandler

func AddMapHandler(ctx *gin.Context)

func CollectHandler

func CollectHandler(ctx *gin.Context)

func EchoHandler

func EchoHandler(ctx *gin.Context)

func LocateHandler

func LocateHandler(c *gin.Context)

LocateHandler provide frontend to compute location info

func ReportAP4Location

func ReportAP4Location(ctx *gin.Context)

ReportAP4Location to do the offline report, before online location, collect location data.

func Resp

func Resp(code int, msg string) baseResp

Types

type LocateReq

type LocateReq struct {
	MapID    uint             `json:"mapID"`
	ScanList []*locate.APInfo `json:"scanList"`
}

func NewLocateReq

func NewLocateReq() *LocateReq

type LocateResp

type LocateResp struct {
	Data locate.LocationInfo `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func NewLocateResp

func NewLocateResp(locInfo *locate.LocationInfo) *LocateResp

Jump to

Keyboard shortcuts

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