MCPcopy
hub / github.com/perkeep/perkeep / useTLS

Method useTLS

pkg/client/config.go:305–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303}
304
305func (c *Client) useTLS() bool {
306 return strings.HasPrefix(c.discoRoot(), "https://")
307}
308
309// SetupAuth sets the client's authMode. It tries from the environment first if we're on android or in dev mode, and then from the client configuration.
310func (c *Client) SetupAuth() error {

Callers 3

useHTTP2Method · 0.95
DialFuncMethod · 0.95
DialTLSFuncMethod · 0.95

Calls 2

discoRootMethod · 0.95
HasPrefixMethod · 0.80

Tested by

no test coverage detected