-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Add whitelabeling helpers #306
Conversation
Hello @bigblind, |
Hello @bigblind, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR, we appreciate it!
@@ -0,0 +1,141 @@ | |||
package whitelabel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have updated the verbiage used to describe a "whitelabel". Please update accordingly. See this PR for an example.
return &Client{request} | ||
} | ||
|
||
// DefaultClient is used if no custom HTTP client is defined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should be able to remove the following functions, as they now reside here: https://github.com/sendgrid/sendgrid-go/blob/main/base_interface.go
@@ -48,6 +48,82 @@ func NewSendClient(key string) *Client { | |||
return &Client{request} | |||
} | |||
|
|||
// NewClientForEndpoint returns a client that can send requests to a specific endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this function, why not just use the default client?
Hello @bigblind, Would you like to continue working on this PR? If not, please let us know and we will add it to our backlog. With best regards, Elmer |
Closing until PR feedback is addressed. |
Fixes #174
Checklist
Short description of what this PR does:
Add helpers for whitelabeling domains.
This is a work in progress, but I'm already submitting a PR to get some early feedback. Is this what you had in mind to solve the issue?
The issue also mentioned an option to email the DNS records that need to be created, so I'm planning to just add a function called
SendDNSRecords
that takes an email address to send from, an address to send to, and a slice ofDNSRecord
s.