Stackdriver: Start breaking out apply route to its own file

This commit is contained in:
Erik Sundell
2018-09-14 09:38:16 +02:00
committed by Daniel Lee
parent 7f99a14c58
commit 6a610558c4
3 changed files with 8 additions and 87 deletions
+2 -3
View File
@@ -32,8 +32,7 @@ type jwtToken struct {
AccessToken string `json:"access_token"`
}
// Access token provider
func NewAccessTokenProvider(dsID int64, pluginRoute *plugins.AppPluginRoute) *accessTokenProvider {
func newAccessTokenProvider(dsID int64, pluginRoute *plugins.AppPluginRoute) *accessTokenProvider {
return &accessTokenProvider{
datasourceID: dsID,
route: pluginRoute,
@@ -140,7 +139,7 @@ var getTokenSource = func(conf *jwt.Config, ctx context.Context) (*oauth2.Token,
return nil, err
}
logger.Info("interpolatedVal", "token.AccessToken", token.AccessToken)
// logger.Info("interpolatedVal", "token.AccessToken", token.AccessToken)
return token, nil
}