Home / Function/ githubConfigRouter() — gin Function Reference

githubConfigRouter() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c6834f9f_4d6e_fbf6_43eb_45c49df8552c["githubConfigRouter()"]
  402e91d6_1dc1_1679_a526_c5dc3a682eb4["TestGithubAPI()"]
  402e91d6_1dc1_1679_a526_c5dc3a682eb4 -->|calls| c6834f9f_4d6e_fbf6_43eb_45c49df8552c
  73393a6e_2609_ba5f_742c_bddbf21b3e0b["BenchmarkGithub()"]
  73393a6e_2609_ba5f_742c_bddbf21b3e0b -->|calls| c6834f9f_4d6e_fbf6_43eb_45c49df8552c
  782a12e0_b37a_c68c_f662_6adb0ac2bf3b["BenchmarkParallelGithub()"]
  782a12e0_b37a_c68c_f662_6adb0ac2bf3b -->|calls| c6834f9f_4d6e_fbf6_43eb_45c49df8552c
  77957839_d111_d224_7400_6cdfb27ff1a1["BenchmarkParallelGithubDefault()"]
  77957839_d111_d224_7400_6cdfb27ff1a1 -->|calls| c6834f9f_4d6e_fbf6_43eb_45c49df8552c
  style c6834f9f_4d6e_fbf6_43eb_45c49df8552c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

githubapi_test.go lines 374–385

func githubConfigRouter(router *Engine) {
	for _, route := range githubAPI {
		router.Handle(route.method, route.path, func(c *Context) {
			output := make(map[string]string, len(c.Params)+1)
			output["status"] = "good"
			for _, param := range c.Params {
				output[param.Key] = param.Value
			}
			c.JSON(http.StatusOK, output)
		})
	}
}

Domain

Subdomains

Frequently Asked Questions

What does githubConfigRouter() do?
githubConfigRouter() is a function in the gin codebase.
What calls githubConfigRouter()?
githubConfigRouter() is called by 4 function(s): BenchmarkGithub, BenchmarkParallelGithub, BenchmarkParallelGithubDefault, TestGithubAPI.

Analyze Your Own Codebase

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

Try Supermodel Free