ServerIsTLS returns true if the server URL is using an accepted secure protocol as it's prefix Prefix checked: couchbases:
(server string)
| 248 | // ServerIsTLS returns true if the server URL is using an accepted secure protocol as it's prefix |
| 249 | // Prefix checked: couchbases: |
| 250 | func 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:|/|\.)` |
no outgoing calls