Documentation
¶
Index ¶
- Variables
- func Beat(req BeatReq, resp *BeatResp) error
- func GetMapVector(mapID uint, apList []*locate.APInfo) model.APVector
- func InitAPConvertor(markAP []string)
- func RunDefaultServer(cfg Config)
- type BeatReq
- type BeatResp
- type Client
- type CollectReq
- type CollectResp
- type Config
- type CreateMapReq
- type CreateMapResp
- type LocateReq
- type LocateService
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoRecord = errors.New("query a not existed record")
)
Functions ¶
func InitAPConvertor ¶
func InitAPConvertor(markAP []string)
func RunDefaultServer ¶
func RunDefaultServer(cfg Config)
RunDefaultServer help you run default rpc server for the service
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) Collect ¶
func (c Client) Collect(req CollectReq, resp *CollectResp) error
func (Client) CreateMap ¶
func (c Client) CreateMap(req CreateMapReq, resp *CreateMapResp) error
type CollectReq ¶
type CollectReq struct { MapID uint APList []*locate.APInfo Location locate.LocationInfo }
type CollectResp ¶
type CollectResp struct{}
type CreateMapResp ¶
type CreateMapResp struct {
MapID uint
}
type LocateService ¶
type LocateService struct {
// contains filtered or unexported fields
}
func NewLocateService ¶
func NewLocateService(locator locate.Locator) *LocateService
func (LocateService) Collect ¶
func (LocateService) Collect(req CollectReq, resp *CollectResp) error
Collect APInfo prepare to locate device online
func (LocateService) CreateMap ¶
func (LocateService) CreateMap(req CreateMapReq, resp *CreateMapResp) error
CreateMap
func (*LocateService) Locate ¶
func (l *LocateService) Locate(req LocateReq, location *locate.LocationInfo) error
Locate compute the location of report WLAN scanList.
Click to show internal directories.
Click to hide internal directories.