Home / Function/ RunQUIC() — gin Function Reference

RunQUIC() — gin Function Reference

Architecture documentation for the RunQUIC() function in gin.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  56e423f9_cdc7_b5a7_3d1c_9ade1e3f4d95["RunQUIC()"]
  3a2c3baf_05dd_1c1d_c903_494ce21d8dff["isUnsafeTrustedProxies()"]
  56e423f9_cdc7_b5a7_3d1c_9ade1e3f4d95 -->|calls| 3a2c3baf_05dd_1c1d_c903_494ce21d8dff
  574d40af_3b9a_ed63_5543_dccb95923f9d["Handler()"]
  56e423f9_cdc7_b5a7_3d1c_9ade1e3f4d95 -->|calls| 574d40af_3b9a_ed63_5543_dccb95923f9d
  style 56e423f9_cdc7_b5a7_3d1c_9ade1e3f4d95 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

gin.go lines 630–641

func (engine *Engine) RunQUIC(addr, certFile, keyFile string) (err error) {
	debugPrint("Listening and serving QUIC 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.")
	}

	err = http3.ListenAndServeQUIC(addr, certFile, keyFile, engine.Handler())
	return
}

Domain

Subdomains

Frequently Asked Questions

What does RunQUIC() do?
RunQUIC() is a function in the gin codebase.
What does RunQUIC() call?
RunQUIC() 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