mirror of
https://github.com/rclone/rclone.git
synced 2025-12-30 15:13:55 +00:00
Switch to using the dep tool and update all the dependencies
This commit is contained in:
15
vendor/golang.org/x/net/trace/trace.go
generated
vendored
15
vendor/golang.org/x/net/trace/trace.go
generated
vendored
@@ -60,7 +60,7 @@ The /debug/events HTTP endpoint organizes the event logs by family and
|
||||
by time since the last error. The expanded view displays recent log
|
||||
entries and the log's call stack.
|
||||
*/
|
||||
package trace
|
||||
package trace // import "golang.org/x/net/trace"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
@@ -77,7 +77,6 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/net/internal/timeseries"
|
||||
)
|
||||
|
||||
@@ -271,18 +270,6 @@ type contextKeyT string
|
||||
|
||||
var contextKey = contextKeyT("golang.org/x/net/trace.Trace")
|
||||
|
||||
// NewContext returns a copy of the parent context
|
||||
// and associates it with a Trace.
|
||||
func NewContext(ctx context.Context, tr Trace) context.Context {
|
||||
return context.WithValue(ctx, contextKey, tr)
|
||||
}
|
||||
|
||||
// FromContext returns the Trace bound to the context, if any.
|
||||
func FromContext(ctx context.Context) (tr Trace, ok bool) {
|
||||
tr, ok = ctx.Value(contextKey).(Trace)
|
||||
return
|
||||
}
|
||||
|
||||
// Trace represents an active request.
|
||||
type Trace interface {
|
||||
// LazyLog adds x to the event log. It will be evaluated each time the
|
||||
|
||||
Reference in New Issue
Block a user