Update to use api.Context

This commit is contained in:
derekwaynecarr
2014-09-26 11:46:04 -04:00
parent b8d95ad01f
commit ee19ba186d
15 changed files with 68 additions and 87 deletions

View File

@@ -20,7 +20,12 @@ import (
"code.google.com/p/go.net/context"
)
// NewContext instantiates a base context object for request flows
func NewContext() context.Context {
return context.Background()
// Context carries values across API boundaries.
type Context interface {
Value(key interface{}) interface{}
}
// NewContext instantiates a base context object for request flows
func NewContext() Context {
return context.TODO()
}