()
| 22 | } |
| 23 | |
| 24 | func defaultCachePath() string { |
| 25 | home, err := core.Homedir() |
| 26 | if err != nil { |
| 27 | log.Panic("Could not find out homedir, exiting") |
| 28 | } |
| 29 | return path.Join(home, ".config", "bcd-proxy") |
| 30 | } |
| 31 | |
| 32 | func NewAutoHttpsServer(cachePath string, email string, handler http.Handler) *http.Server { |
| 33 | if cachePath == "" { |
no outgoing calls
no test coverage detected