data1

package
v0.0.0-...-9b862cf Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const AltBeacon = "altbeacon"
View Source
const EddyStoneUdi = "eddystone-udi"
View Source
const IBeacon = "ibeacon"
View Source
const Unknown = "unknown"

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconV1

type BeaconV1 struct {
	Id     string     `json:"id" bson:"_id"`
	SiteId string     `json:"site_id" bson:"site_id"`
	Type   string     `json:"type" bson:"type"`
	Udi    string     `json:"udi" bson:"udi"`
	Label  string     `json:"label" bson:"label"`
	Center GeoPointV1 `json:"center" bson:"center"` // GeoJson
	Radius float32    `json:"radius" bson:"radius"`
}

type BeaconV1DataPage

type BeaconV1DataPage struct {
	Total *int64      `json:"total" bson:"total"`
	Data  []*BeaconV1 `json:"data" bson:"data"`
}

func NewBeaconV1DataPage

func NewBeaconV1DataPage(total *int64, data []*BeaconV1) *BeaconV1DataPage

func NewEmptyBeaconV1DataPage

func NewEmptyBeaconV1DataPage() *BeaconV1DataPage

type BeaconV1Schema

type BeaconV1Schema struct {
	cvalid.ObjectSchema
}

func NewBeaconV1Schema

func NewBeaconV1Schema() *BeaconV1Schema

type GeoPointV1

type GeoPointV1 struct {
	Type        string      `json:"type" bson:"type"`
	Coordinates [][]float32 `json:"coordinates" bson:"coordinates"`
}

Jump to

Keyboard shortcuts

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