Home / Function/ Do() — fiber Function Reference

Do() — fiber Function Reference

Architecture documentation for the Do() function in proxy.go from the fiber codebase.

Function go FiberCore Adapters calls 1 called by 4

Entity Profile

Dependency Diagram

graph TD
  c2502153_4789_a74e_f3f8_bc71e346f366["Do()"]
  409bdb74_0bb5_be72_7b00_0c1c6089b005["proxy.go"]
  c2502153_4789_a74e_f3f8_bc71e346f366 -->|defined in| 409bdb74_0bb5_be72_7b00_0c1c6089b005
  1b85ddf7_ff7f_1e1a_8643_baf3cb4c1274["Balancer()"]
  1b85ddf7_ff7f_1e1a_8643_baf3cb4c1274 -->|calls| c2502153_4789_a74e_f3f8_bc71e346f366
  67686615_4e20_8a09_6803_6a016b93b904["Forward()"]
  67686615_4e20_8a09_6803_6a016b93b904 -->|calls| c2502153_4789_a74e_f3f8_bc71e346f366
  0779c884_82b6_09ef_5354_515aa86204c4["DomainForward()"]
  0779c884_82b6_09ef_5354_515aa86204c4 -->|calls| c2502153_4789_a74e_f3f8_bc71e346f366
  4490baf5_1571_068a_5e43_6debdd4108f1["BalancerForward()"]
  4490baf5_1571_068a_5e43_6debdd4108f1 -->|calls| c2502153_4789_a74e_f3f8_bc71e346f366
  8fe027cc_2ba5_d594_f941_013559087e63["doAction()"]
  c2502153_4789_a74e_f3f8_bc71e346f366 -->|calls| 8fe027cc_2ba5_d594_f941_013559087e63
  style c2502153_4789_a74e_f3f8_bc71e346f366 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/proxy/proxy.go lines 136–140

func Do(c fiber.Ctx, addr string, clients ...*fasthttp.Client) error {
	return doAction(c, addr, func(cli *fasthttp.Client, req *fasthttp.Request, resp *fasthttp.Response) error {
		return cli.Do(req, resp)
	}, clients...)
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does Do() do?
Do() is a function in the fiber codebase, defined in middleware/proxy/proxy.go.
Where is Do() defined?
Do() is defined in middleware/proxy/proxy.go at line 136.
What does Do() call?
Do() calls 1 function(s): doAction.
What calls Do()?
Do() is called by 4 function(s): Balancer, BalancerForward, DomainForward, Forward.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free