mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
18 lines
519 B
Go
18 lines
519 B
Go
package fnext
|
|
|
|
// good reading on this: https://twitter.com/sajma/status/757217773852487680
|
|
type contextKey string
|
|
|
|
// func (c contextKey) String() string {
|
|
// return "fnext context key " + string(c)
|
|
// }
|
|
|
|
// Keys for extensions to get things out of the context
|
|
var (
|
|
// MiddlewareControllerKey is a context key. It can be used in handlers with context.WithValue to
|
|
// access the MiddlewareContext.
|
|
MiddlewareControllerKey = contextKey("middleware_controller")
|
|
// AppNameKey
|
|
AppNameKey = contextKey("app_name")
|
|
)
|