RunUnix() — gin Function Reference
Architecture documentation for the RunUnix() function in gin.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 0d547443_1bfd_a0be_be1c_ce9b82d0241a["RunUnix()"] 3a2c3baf_05dd_1c1d_c903_494ce21d8dff["isUnsafeTrustedProxies()"] 0d547443_1bfd_a0be_be1c_ce9b82d0241a -->|calls| 3a2c3baf_05dd_1c1d_c903_494ce21d8dff 574d40af_3b9a_ed63_5543_dccb95923f9d["Handler()"] 0d547443_1bfd_a0be_be1c_ce9b82d0241a -->|calls| 574d40af_3b9a_ed63_5543_dccb95923f9d style 0d547443_1bfd_a0be_be1c_ce9b82d0241a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin.go lines 581–602
func (engine *Engine) RunUnix(file string) (err error) {
debugPrint("Listening and serving HTTP on unix:/%s", file)
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.")
}
listener, err := net.Listen("unix", file)
if err != nil {
return
}
defer listener.Close()
defer os.Remove(file)
server := &http.Server{ // #nosec G112
Handler: engine.Handler(),
}
err = server.Serve(listener)
return
}
Domain
Subdomains
Source
Frequently Asked Questions
What does RunUnix() do?
RunUnix() is a function in the gin codebase.
What does RunUnix() call?
RunUnix() 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