Home / Function/ walkBalancingClientWithBreak() — fiber Function Reference

walkBalancingClientWithBreak() — fiber Function Reference

Architecture documentation for the walkBalancingClientWithBreak() function in transport.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  68cbfdd2_31e5_c237_5bf6_bcfe310dfce2["walkBalancingClientWithBreak()"]
  cfe2515b_ab6b_e576_a031_f986d4835acf["transport.go"]
  68cbfdd2_31e5_c237_5bf6_bcfe310dfce2 -->|defined in| cfe2515b_ab6b_e576_a031_f986d4835acf
  1067e753_7a7e_27ec_33e6_3a59a7fca712["walkBalancingClient()"]
  1067e753_7a7e_27ec_33e6_3a59a7fca712 -->|calls| 68cbfdd2_31e5_c237_5bf6_bcfe310dfce2
  13dbd12b_e0b0_473a_ddde_ceee1046b031["extractTLSConfig()"]
  13dbd12b_e0b0_473a_ddde_ceee1046b031 -->|calls| 68cbfdd2_31e5_c237_5bf6_bcfe310dfce2
  style 68cbfdd2_31e5_c237_5bf6_bcfe310dfce2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

client/transport.go lines 268–286

func walkBalancingClientWithBreak(client any, fn func(*fasthttp.HostClient) bool) bool {
	switch c := client.(type) {
	case *fasthttp.HostClient:
		return fn(c)
	case *fasthttp.LBClient:
		for _, nestedClient := range c.Clients {
			if walkBalancingClientWithBreak(nestedClient, fn) {
				return true
			}
		}
	case interface{ LBClient() *fasthttp.LBClient }:
		if nested := c.LBClient(); nested != nil {
			if walkBalancingClientWithBreak(nested, fn) {
				return true
			}
		}
	}
	return false
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does walkBalancingClientWithBreak() do?
walkBalancingClientWithBreak() is a function in the fiber codebase, defined in client/transport.go.
Where is walkBalancingClientWithBreak() defined?
walkBalancingClientWithBreak() is defined in client/transport.go at line 268.
What calls walkBalancingClientWithBreak()?
walkBalancingClientWithBreak() is called by 2 function(s): extractTLSConfig, walkBalancingClient.

Analyze Your Own Codebase

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

Try Supermodel Free