-
Notifications
You must be signed in to change notification settings - Fork 541
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
Change UpdateDNSRecord to also return the DNSRecordResponse #1239
Comments
👋 we're in the process of making the Go library parameters and return types more consistent with our end goal outlined at https://github.com/cloudflare/cloudflare-go/blob/master/docs/experimental.md (recommend taking a look to get the full picture). i'm open to updating the method signature for |
👋 No worries there, the essence of this proposal is to make |
This isn't high on my priority list so if it is something you want, you're welcome to submit a PR. |
This functionality has been released in v0.64.0. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Current cloudflare-go version
v0.63.0
Description
Change UpdateDNSRecord return type from just
error
to(*DNSRecordResponse, error)
(and consequently returning theDNSRecordResponse
that is already being received)The proposed change would make this method consistent with:
Use cases
Handling
CreateDNSRecord
andUpdateDNSRecord
's responses in a uniform way.In my particular case, I need to create/update a DNS record whenever I create/update a worker route (in order to automatically generate a new certificate, as I'm using Total TLS).
Since these pairs of methods (
Create/UpdateDNSRecord
andCreate/UpdateWorkerRoute
) are somewhat similar, it would be nice for their signatures/return types to be consistent with each other, enabling one to write code that mirrors those similarities.Potential cloudflare-go usage
References
No response
The text was updated successfully, but these errors were encountered: