Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gin.Context.Keys #1875

Closed
18959263172 opened this issue Apr 28, 2019 · 4 comments
Closed

gin.Context.Keys #1875

18959263172 opened this issue Apr 28, 2019 · 4 comments

Comments

@18959263172
Copy link

What is this ? session ? I mean where does it stored? In the memory ? and when does it expired?

@18959263172
Copy link
Author

Does it losted when the request's response is returned?

@solarhell
Copy link

solarhell commented Apr 28, 2019

type Context struct {
	...
	// Keys is a key/value pair exclusively for the context of each request.
	Keys map[string]interface{}
	...
}

@18959263172
Copy link
Author

sloved,I think this is for middlerware

@kobeHub
Copy link

kobeHub commented Aug 20, 2019

How to set keys in the requests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants