diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 11:18:14 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 11:18:42 +0100 |
| commit | e9f8db8ee8fccf60e58deb1d72766f94a053bb16 (patch) | |
| tree | ffa5a9be67717ecc8ff7bdc03d5f96028facb0e3 /exports | |
| parent | b4ff890ec2b459148d893499a34a6d2954530369 (diff) | |
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
Diffstat (limited to 'exports')
| -rw-r--r-- | exports/disco.go | 4 | ||||
| -rw-r--r-- | exports/servers.go | 2 |
2 files changed, 3 insertions, 3 deletions
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) |
