MCPcopy Create free account

hub / github.com/gorilla/context / functions

Functions23 in github.com/gorilla/context

↓ 9 callersFunctionbenchmarkMutex
(b *testing.B, numReaders, numWriters, iterations int)
context_test.go:103
↓ 2 callersFunctionClear
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 callersFunctionGet
Get returns a value stored for a given key in a given request.
context.go:27
↓ 2 callersFunctionSet
Set stores a value for a given key in a given request.
context.go:16
↓ 2 callersFunctionclear
clear is Clear without the lock.
context.go:98
↓ 1 callersFunctionDelete
Delete removes a value stored for a given key in a given request.
context.go:79
↓ 1 callersFunctionGetAll
GetAll returns all stored values for the request as a map. Nil is returned for invalid requests.
context.go:51
↓ 1 callersFunctionGetAllOk
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 callersFunctionGetOk
GetOk returns stored value and presence state like multi-value return of map access.
context.go:39
↓ 1 callersFunctionparallelReader
(r *http.Request, key string, iterations int, wait, done chan struct{})
context_test.go:85
↓ 1 callersFunctionparallelWriter
(r *http.Request, key, value string, iterations int, wait, done chan struct{})
context_test.go:94
FunctionBenchmarkMutex1
(b *testing.B)
context_test.go:140
FunctionBenchmarkMutex2
(b *testing.B)
context_test.go:143
FunctionBenchmarkMutex3
(b *testing.B)
context_test.go:146
FunctionBenchmarkMutex4
(b *testing.B)
context_test.go:149
FunctionBenchmarkMutex5
(b *testing.B)
context_test.go:152
FunctionBenchmarkMutex6
(b *testing.B)
context_test.go:155
FunctionBenchmarkMutexSameReadWrite1
(b *testing.B)
context_test.go:131
FunctionBenchmarkMutexSameReadWrite2
(b *testing.B)
context_test.go:134
FunctionBenchmarkMutexSameReadWrite4
(b *testing.B)
context_test.go:137
FunctionClearHandler
ClearHandler wraps an http.Handler and clears request values at the end of a request lifetime.
context.go:134
FunctionPurge
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
FunctionTestContext
(t *testing.T)
context_test.go:15