locclient

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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

type LocationResponseMessage struct {
	MatchingDegree string `json:"matchingDegree"`
	Message        string `json:"message"`
}

Jump to

Keyboard shortcuts

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