From 5abf00ab87a55662eefc7716de52ead9749293c6 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 13 May 2022 12:12:22 +0200 Subject: Refactor: Adapt the API to the documentation --- docs/src/api/go/functions.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'docs/src/api/go/functions.md') diff --git a/docs/src/api/go/functions.md b/docs/src/api/go/functions.md index c647787..381f5be 100644 --- a/docs/src/api/go/functions.md +++ b/docs/src/api/go/functions.md @@ -26,9 +26,10 @@ Returns a string of JSON data with the servers/organizations and an `error`, nil ## OpenVPN/Wireguard config See [Overview](../overview/getconfig.html) ```go -func GetConnectConfig(url string, forceTCP bool) (string, string, error) +func GetConfigInstituteAccess(url string, forceTCP bool) (string, string, error) +func GetConfigSecureInternet(url string, forceTCP bool) (string, string, error) ``` -- `url`: The url of the server to get a connect config for +- `url`: The URL of the Institute Access or Secure Internet server to get a connect config for - `forceTCP`: Whether or not we want to force enable TCP Returns: @@ -36,6 +37,12 @@ Returns: - A `string`, `openvpn` or `wireguard` indicating if it is an OpenVPN or Wireguard config - An `error` (can be nil) +### Cancelling OAuth +```go +func CancelOAuth() error +``` +Returns an `error`, can be nil indicating no error + ### Setting a profile ID ```go func SetProfileID(profileID string) error -- cgit v1.2.3