mirror of
https://github.com/grafana/grafana.git
synced 2026-08-13 06:34:55 -05:00
PluginProxy: Split implementations of token providers (#32820)
* Split implementations of token providers * Fix imports * Fix code racing in unit tests
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package pluginproxy
|
||||
|
||||
import "time"
|
||||
|
||||
type accessTokenProvider interface {
|
||||
getAccessToken() (string, error)
|
||||
}
|
||||
|
||||
var (
|
||||
// timeNow makes it possible to test usage of time
|
||||
timeNow = time.Now
|
||||
)
|
||||
Reference in New Issue
Block a user