make private if not part of provider interface
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user