make private if not part of provider interface
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-11-13 18:52:24 -07:00
parent 5eea9ede3a
commit 47e460a9dc
4 changed files with 19 additions and 19 deletions

View File

@@ -12,7 +12,7 @@ import (
const loginServerURL = "https://login.questrade.com/oauth2/"
type LoginCredentials struct {
type loginCredentials struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn int `json:"expires_in"`
@@ -24,7 +24,7 @@ type LoginCredentials struct {
// endpoints. It holds the login credentials, http client/transport,
// rate limit information, and the login session timer.
type client struct {
Credentials LoginCredentials
Credentials loginCredentials
SessionTimer *time.Timer
RateLimitRemaining int
RateLimitReset time.Time
@@ -34,7 +34,7 @@ type client struct {
// authHeader is a shortcut that returns a string to be placed
// in the authorization header of API calls
func (l LoginCredentials) authHeader() string {
func (l loginCredentials) authHeader() string {
return l.TokenType + " " + l.AccessToken
}
@@ -117,7 +117,7 @@ func newClient(refreshToken string) (*client, error) {
// Create a new client
c := &client{
Credentials: LoginCredentials{
Credentials: loginCredentials{
RefreshToken: refreshToken,
},
httpClient: httpClient,