MCPcopy Create free account
hub / github.com/fvbock/endless / main

Function main

examples/tls.go:16–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func main() {
17 mux1 := mux.NewRouter()
18 mux1.Schemes("https")
19 mux1.HandleFunc("/hello", handler).
20 Methods("GET")
21
22 err := endless.ListenAndServeTLS("localhost:4242", "cert.pem", "key.pem", mux1)
23 if err != nil {
24 log.Println(err)
25 }
26 log.Println("Server on 4242 stopped")
27
28 os.Exit(0)
29}

Callers

nothing calls this directly

Calls 1

ListenAndServeTLSMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…