Home / Type/ HandlerFunc Type — gin Architecture

HandlerFunc Type — gin Architecture

Architecture documentation for the HandlerFunc type/interface in routergroup.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  81e847c3_6678_7d3e_5bb8_1b93f0053ee3["HandlerFunc"]
  90c6fc95_95bf_b935_fc1f_e0e4861e1b09["routergroup.go"]
  81e847c3_6678_7d3e_5bb8_1b93f0053ee3 -->|defined in| 90c6fc95_95bf_b935_fc1f_e0e4861e1b09
  style 81e847c3_6678_7d3e_5bb8_1b93f0053ee3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

routergroup.go lines 33–51

type IRoutes interface {
	Use(...HandlerFunc) IRoutes

	Handle(string, string, ...HandlerFunc) IRoutes
	Any(string, ...HandlerFunc) IRoutes
	GET(string, ...HandlerFunc) IRoutes
	POST(string, ...HandlerFunc) IRoutes
	DELETE(string, ...HandlerFunc) IRoutes
	PATCH(string, ...HandlerFunc) IRoutes
	PUT(string, ...HandlerFunc) IRoutes
	OPTIONS(string, ...HandlerFunc) IRoutes
	HEAD(string, ...HandlerFunc) IRoutes
	Match([]string, string, ...HandlerFunc) IRoutes

	StaticFile(string, string) IRoutes
	StaticFileFS(string, string, http.FileSystem) IRoutes
	Static(string, string) IRoutes
	StaticFS(string, http.FileSystem) IRoutes
}

Defined In

Frequently Asked Questions

What is the HandlerFunc type?
HandlerFunc is a type/interface in the gin codebase, defined in routergroup.go.
Where is HandlerFunc defined?
HandlerFunc is defined in routergroup.go at line 33.

Analyze Your Own Codebase

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

Try Supermodel Free