From e9f8db8ee8fccf60e58deb1d72766f94a053bb16 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 28 Nov 2022 11:18:14 +0100 Subject: Document: Add comments for most functions and packages Errors and test files still need to be done. Also some getters are changed by removing the 'get' prefix --- exports/disco.go | 4 ++-- exports/servers.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'exports') diff --git a/exports/disco.go b/exports/disco.go index c5e544a..b04385a 100644 --- a/exports/disco.go +++ b/exports/disco.go @@ -175,7 +175,7 @@ func GetDiscoServers(name *C.char) (*C.discoveryServers, *C.error) { if stateErr != nil { return nil, getError(stateErr) } - servers, serversErr := state.GetDiscoServers() + servers, serversErr := state.DiscoServers() if serversErr != nil { return nil, getError(serversErr) } @@ -198,7 +198,7 @@ func GetDiscoOrganizations(name *C.char) (*C.discoveryOrganizations, *C.error) { if stateErr != nil { return nil, getError(stateErr) } - organizations, organizationsErr := state.GetDiscoOrganizations() + organizations, organizationsErr := state.DiscoOrganizations() if organizationsErr != nil { return nil, getError(organizationsErr) } diff --git a/exports/servers.go b/exports/servers.go index 7536465..0c3cc5f 100644 --- a/exports/servers.go +++ b/exports/servers.go @@ -174,7 +174,7 @@ func getCPtrServer(state *client.Client, base *client.ServerBase) *C.server { if base.Type == "secure_internet" { identifier = state.Servers.SecureInternetHomeServer.HomeOrganizationID countryCode = state.Servers.SecureInternetHomeServer.CurrentLocation - locations = state.Discovery.GetSecureLocationList() + locations = state.Discovery.SecureLocationList() } cServer.identifier = C.CString(identifier) -- cgit v1.2.3