Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gin-contrib/location
/ functions
Functions
16 in github.com/gin-contrib/location
⨍
Functions
16
◇
Types & classes
3
↓ 3 callers
Function
DefaultConfig
DefaultConfig returns a generic default configuration mapped to localhost.
location.go:37
↓ 3 callers
Function
Get
Get returns the Location information for the incoming http.Request from the context. If the location is not set a nil value is returned.
location.go:65
↓ 2 callers
Function
New
New returns the location middleware with user-defined custom configuration.
location.go:55
↓ 2 callers
Method
applyToContext
(c *gin.Context)
config.go:29
↓ 2 callers
Function
newLocation
(config Config)
config.go:20
↓ 2 callers
Function
performRequest
(r http.Handler, method string)
location_test.go:150
↓ 1 callers
Function
Default
Default returns the location middleware with default configuration.
location.go:49
↓ 1 callers
Function
customRouter
(config Config)
location_test.go:164
↓ 1 callers
Function
defaultRouter
()
location_test.go:138
↓ 1 callers
Method
resolveHost
(r *http.Request)
config.go:53
↓ 1 callers
Method
resolveScheme
(r *http.Request)
config.go:37
Function
TestCustom
(t *testing.T)
location_test.go:176
Function
TestDefault
(t *testing.T)
location_test.go:157
Function
TestLocation
(t *testing.T)
location_test.go:123
Function
main
()
example/default/example.go:11
Function
main
()
example/custom/example.go:11