Skip to content

goji/context

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Context

GoDoc

Context provides a canonical way to use go.net's context package with Goji. It provides two-way bindings between context.Context objects and Goji's web.C, giving you a convenient way to look up Goji Env variables from the context.Context and allowing you to freely convert one request context to the other.

Warning! The two-way binding implies that the context.Context is bound to the lifetime of Goji's web.C, which is scoped to the lifetime of the web request. You will encounter data races if you refence the context.Context in a goroutine which outlives the web request.

Releases

No releases published

Packages

No packages published

Languages