diff options
Diffstat (limited to 'exports/exports.go')
| -rw-r--r-- | exports/exports.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/exports/exports.go b/exports/exports.go index 9ea8cba..43dfb9e 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -5,6 +5,19 @@ import "C" import "github.com/jwijenbergh/eduvpn-common/src" // Functions here should probably not take string parameters, see https://pkg.go.dev/cmd/cgo#hdr-C_references_to_Go +// GetOrganizationsList gets the list of organizations from the disco server. +// Returns the unix timestamp of the data. This is used as key for looking up data. +//export GetOrganizationsList +func GetOrganizationsList() uint64 { + return eduvpn.GetOrganizationsList() +} + +// GetServerList gets the list of servers from the disco server. +// Returns the unix timestamp of the data. This is used as key for looking up data. +//export GetServerList +func GetServerList() uint64 { + return eduvpn.GetServerList() +} // Verify verifies a signature on a JSON file. See eduvpn.Verify for more details. // It returns 0 for a valid signature and a nonzero eduvpn.VerifyErrorCode otherwise. |
