Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gorilla/context
/ functions
Functions
23 in github.com/gorilla/context
⨍
Functions
23
◇
Types & classes
1
↓ 9 callers
Function
benchmarkMutex
(b *testing.B, numReaders, numWriters, iterations int)
context_test.go:103
↓ 2 callers
Function
Clear
Clear removes all values stored for a given request. This is usually called by a handler wrapper to clean up request variables at the end of a reques
context.go:91
↓ 2 callers
Function
Get
Get returns a value stored for a given key in a given request.
context.go:27
↓ 2 callers
Function
Set
Set stores a value for a given key in a given request.
context.go:16
↓ 2 callers
Function
clear
clear is Clear without the lock.
context.go:98
↓ 1 callers
Function
Delete
Delete removes a value stored for a given key in a given request.
context.go:79
↓ 1 callers
Function
GetAll
GetAll returns all stored values for the request as a map. Nil is returned for invalid requests.
context.go:51
↓ 1 callers
Function
GetAllOk
GetAllOk returns all stored values for the request as a map and a boolean value that indicates if the request was registered.
context.go:67
↓ 1 callers
Function
GetOk
GetOk returns stored value and presence state like multi-value return of map access.
context.go:39
↓ 1 callers
Function
parallelReader
(r *http.Request, key string, iterations int, wait, done chan struct{})
context_test.go:85
↓ 1 callers
Function
parallelWriter
(r *http.Request, key, value string, iterations int, wait, done chan struct{})
context_test.go:94
Function
BenchmarkMutex1
(b *testing.B)
context_test.go:140
Function
BenchmarkMutex2
(b *testing.B)
context_test.go:143
Function
BenchmarkMutex3
(b *testing.B)
context_test.go:146
Function
BenchmarkMutex4
(b *testing.B)
context_test.go:149
Function
BenchmarkMutex5
(b *testing.B)
context_test.go:152
Function
BenchmarkMutex6
(b *testing.B)
context_test.go:155
Function
BenchmarkMutexSameReadWrite1
(b *testing.B)
context_test.go:131
Function
BenchmarkMutexSameReadWrite2
(b *testing.B)
context_test.go:134
Function
BenchmarkMutexSameReadWrite4
(b *testing.B)
context_test.go:137
Function
ClearHandler
ClearHandler wraps an http.Handler and clears request values at the end of a request lifetime.
context.go:134
Function
Purge
Purge removes request data stored for longer than maxAge, in seconds. It returns the amount of requests removed. If maxAge <= 0, all request data is
context.go:112
Function
TestContext
(t *testing.T)
context_test.go:15