Remove context related functions in credentials

This commit is contained in:
iamqizhao
2016-01-06 18:26:33 -08:00
parent b36c5c6fd9
commit 76515fa9fd
3 changed files with 0 additions and 16 deletions

View File

@ -87,20 +87,6 @@ type AuthInfo interface {
AuthType() string
}
/*
type authInfoKey struct{}
// NewContext creates a new context with authInfo attached.
func NewContext(ctx context.Context, authInfo AuthInfo) context.Context {
return context.WithValue(ctx, authInfoKey{}, authInfo)
}
// FromContext returns the authInfo in ctx if it exists.
func FromContext(ctx context.Context) (authInfo AuthInfo, ok bool) {
authInfo, ok = ctx.Value(authInfoKey{}).(AuthInfo)
return
}
*/
// TransportAuthenticator defines the common interface for all the live gRPC wire
// protocols and supported transport security protocols (e.g., TLS, SSL).
type TransportAuthenticator interface {