MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / ServerIsTLS

Function ServerIsTLS

base/constants.go:250–252  ·  view source on GitHub ↗

ServerIsTLS returns true if the server URL is using an accepted secure protocol as it's prefix Prefix checked: couchbases:

(server string)

Source from the content-addressed store, hash-verified

248// ServerIsTLS returns true if the server URL is using an accepted secure protocol as it's prefix
249// Prefix checked: couchbases:
250func ServerIsTLS(server string) bool {
251 return strings.HasPrefix(server, "couchbases:")
252}
253
254// ServerIsWalrus returns true when the given server looks like a Walrus URI
255// Equivalent to the old regexp: `^(walrus:|file:|/|\.)`

Calls

no outgoing calls