Debian Codegraph @

serverinfo/url.go

raw symbols SCIP
1 package serverinfo
2
3 import (
4 "fmt"
5 )
6
7 const (
8 infoPathFormat = "%s/ocs/v2.php/apps/serverinfo/api/v1/info?format=json&skipApps=%v&skipUpdate=%v"
9 )
10
11 // InfoURL constructs the URL of the info endpoint from the server base URL and optional parameters.
12 func InfoURL(serverURL string, skipApps bool, skipUpdate bool) string {
13 return fmt.Sprintf(infoPathFormat, serverURL, skipApps, skipUpdate)
14 }