RunFd() — gin Function Reference
Architecture documentation for the RunFd() function in gin.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 6644ac8c_4250_d0a5_24d0_3c468a58ea64["RunFd()"] 3a2c3baf_05dd_1c1d_c903_494ce21d8dff["isUnsafeTrustedProxies()"] 6644ac8c_4250_d0a5_24d0_3c468a58ea64 -->|calls| 3a2c3baf_05dd_1c1d_c903_494ce21d8dff 87d071bd_480a_e635_b237_cc68d91f720b["RunListener()"] 6644ac8c_4250_d0a5_24d0_3c468a58ea64 -->|calls| 87d071bd_480a_e635_b237_cc68d91f720b style 6644ac8c_4250_d0a5_24d0_3c468a58ea64 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin.go lines 607–625
func (engine *Engine) RunFd(fd int) (err error) {
debugPrint("Listening and serving HTTP on fd@%d", fd)
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.")
}
f := os.NewFile(uintptr(fd), fmt.Sprintf("fd@%d", fd))
defer f.Close()
listener, err := net.FileListener(f)
if err != nil {
return
}
defer listener.Close()
err = engine.RunListener(listener)
return
}
Domain
Subdomains
Source
Frequently Asked Questions
What does RunFd() do?
RunFd() is a function in the gin codebase.
What does RunFd() call?
RunFd() calls 2 function(s): RunListener, isUnsafeTrustedProxies.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free