data

package
v0.0.0-...-764220a Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconV1

type BeaconV1 struct {
	Id      string     `json:"id" bson:"_id"`
	Site_id 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"`
}

implements IStringIdentifiable

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"`
}

type TBeaconTypeV1

type TBeaconTypeV1 struct {
	Unknown      string
	AltBeacon    string
	IBeacon      string
	EddyStoneUdi string
}
var BeaconTypeV1 TBeaconTypeV1 = *NewTBeaconTypeV1()

func NewTBeaconTypeV1

func NewTBeaconTypeV1() *TBeaconTypeV1

Jump to

Keyboard shortcuts

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