RunTLS() — gin Function Reference
Architecture documentation for the RunTLS() function in gin.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD a0b5bdc8_9103_2fbd_2b3b_9295c5f6b4f7["RunTLS()"] 3a2c3baf_05dd_1c1d_c903_494ce21d8dff["isUnsafeTrustedProxies()"] a0b5bdc8_9103_2fbd_2b3b_9295c5f6b4f7 -->|calls| 3a2c3baf_05dd_1c1d_c903_494ce21d8dff 574d40af_3b9a_ed63_5543_dccb95923f9d["Handler()"] a0b5bdc8_9103_2fbd_2b3b_9295c5f6b4f7 -->|calls| 574d40af_3b9a_ed63_5543_dccb95923f9d style a0b5bdc8_9103_2fbd_2b3b_9295c5f6b4f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin.go lines 561–576
func (engine *Engine) RunTLS(addr, certFile, keyFile string) (err error) {
debugPrint("Listening and serving HTTPS on %s\n", addr)
defer func() { debugPrintError(err) }()
if engine.isUnsafeTrustedProxies() {
debugPrint("[WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.\n" +
"Please check https://github.com/gin-gonic/gin/blob/master/docs/doc.md#dont-trust-all-proxies for details.")
}
server := &http.Server{ // #nosec G112
Addr: addr,
Handler: engine.Handler(),
}
err = server.ListenAndServeTLS(certFile, keyFile)
return
}
Domain
Subdomains
Source
Frequently Asked Questions
What does RunTLS() do?
RunTLS() is a function in the gin codebase.
What does RunTLS() call?
RunTLS() calls 2 function(s): Handler, isUnsafeTrustedProxies.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free