mercedes-byocar-exporter/internal/credential/interface.go

13 lines
316 B
Go
Raw Normal View History

2022-11-19 23:47:19 +00:00
package credential
import "time"
type (
Store interface {
GetClientCredentials() (clientID, clientSecret string, err error)
GetToken() (accessToken, refreshToken string, expiry time.Time, err error)
HasCredentials() (bool, error)
UpdateToken(accessToken, refreshToken string, expiry time.Time) error
}
)