summaryrefslogtreecommitdiffstats
path: root/vendor/gomod.garykim.dev/nc-talk/constants
diff options
context:
space:
mode:
authorGary Kim <gary@garykim.dev>2020-08-30 07:49:26 -0400
committerGitHub <noreply@github.com>2020-08-30 13:49:26 +0200
commita0741d99b80d7da1c063853382756b3a9689f6a7 (patch)
tree86b6954d34558fe3a753284dea52928a031edc7a /vendor/gomod.garykim.dev/nc-talk/constants
parentc63f08c8113598149f312bffd3fbdf1970660639 (diff)
downloadmatterbridge-msglm-a0741d99b80d7da1c063853382756b3a9689f6a7.tar.gz
matterbridge-msglm-a0741d99b80d7da1c063853382756b3a9689f6a7.tar.bz2
matterbridge-msglm-a0741d99b80d7da1c063853382756b3a9689f6a7.zip
Add TLSConfig to nctalk (#1195)
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'vendor/gomod.garykim.dev/nc-talk/constants')
-rw-r--r--vendor/gomod.garykim.dev/nc-talk/constants/constants.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/gomod.garykim.dev/nc-talk/constants/constants.go b/vendor/gomod.garykim.dev/nc-talk/constants/constants.go
index de56f162..c70e4daa 100644
--- a/vendor/gomod.garykim.dev/nc-talk/constants/constants.go
+++ b/vendor/gomod.garykim.dev/nc-talk/constants/constants.go
@@ -18,3 +18,8 @@ const (
// BaseEndpoint is the api endpoint for Nextcloud Talk
BaseEndpoint = "/ocs/v2.php/apps/spreed/api/v1/"
)
+
+// RemoteDavEndpoint returns the endpoint for the Dav API for Nextcloud
+func RemoteDavEndpoint(username string, davType string) string {
+ return "/remote.php/dav/" + username + "/" + davType + "/"
+}