models

package
v0.0.0-...-c6300c3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Circle

type Circle struct {
	X float64
	Y float64
	Z float64
	R float64
}

X, Y and Z are the position values in the cartesian plane. R is the circle radious

type MotherShip

type MotherShip struct {
	Position Position `json:"position"`
	Message  string   `json:"message"`
}

NotherShip represents the position and message after decript

type Position

type Position struct {
	X float32 `json:"x"`
	Y float32 `json:"y"`
}

type SatelliteRequest

type SatelliteRequest struct {
	Name     string   `bson:"name" json:"name" binding:"required"`
	Distance float32  `bson:"distance" json:"distance" binding:"required"`
	Message  []string `bson:"message" json:"message" binding:"required"`
}

func GetAllSatelliteRequest

func GetAllSatelliteRequest() []SatelliteRequest

Retrive all the requests

func GetOneRequestBySatelliteName

func GetOneRequestBySatelliteName(newRequest SatelliteRequest) (*SatelliteRequest, error)

search for only one request using the satellite name as key filter

Jump to

Keyboard shortcuts

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