core

package
v0.0.0-...-e2ac681 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddData

func AddData(c *gin.Context)

Add wifi location data to database

func FindPosition

func FindPosition(c *gin.Context)

Function for estimates your current location using new Wi-Fi signal data.

func Test

func Test(c *gin.Context)

Returns the received Wi-Fi data for the test.

Types

type DBData

type DBData struct {
	Id       int
	Position string
	WifiData []WifiData
}

data from DB

type Passwd

type Passwd struct {
	Key string `json:"key"`
}

password data struct

type PosData

type PosData struct {
	Position string     `json:"position"`
	Password string     `json:"password"`
	WifiData []WifiData `json:"wifi_data"`
}

struct for json data from client

type WifiData

type WifiData struct {
	Bssid string `json:"bssid"`
	Rssi  int    `json:"rssi"`
}

wifi data in PosData

Jump to

Keyboard shortcuts

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