Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallOPERALPHALocationVerifyAPI ¶
func CallOPERALPHALocationVerifyAPI(locVerUrl string, lat, long float64, token string, tokSrvUrl string) uaemcommon.LocationResult
CallOPERALPHALocationVerifyAPI REST API client for the OPERALPHA implementation of Location verification API
Types ¶
type LocationRequestMessage ¶
type LocationRequestMessage struct { Lat float64 `json:"latitude" yaml:"lat"` Long float64 `json:"longitude" yaml:"long"` Token util.OPERALPHAToken `json:"token" yaml:"token"` Ipaddress string `json:"ipaddr,omitempty" yaml:"ipaddr"` ServiceURL string `json:"serviceUrl,omitempty" yaml:"serviceUrl"` }
format of the HTTP request body. Token is used for validation of location, but IP address is still present to allow locations to be updated for the simulator
type LocationResponseMessage ¶
Click to show internal directories.
Click to hide internal directories.