Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Context #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Context #4

wants to merge 2 commits into from

Conversation

nzoschke
Copy link

@nzoschke nzoschke commented Mar 9, 2018

This patch adds the context pattern to the SDK. This is a breaking change to the package API.

However, this preserves the spirit of mimicking the go-github package which introduced context as the first argument to every SDK call in Feb 2017: google/go-github#529

This was prompted by using this SDK in an AWS Lambda function that traces all HTTP activity with X-Ray.

"fmt"
"time"

"github.com/chrismalek/oktasdk-go/okta"
"github.com/nzoschke/oktasdk-go/okta"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll want to change these back if this is merged upstream.

@chrismalek
Copy link
Owner

Give me a day or two to digest this and see how other golang packages handle a breaking change like this. I think I have seen some packages have a "v1" or "v2" import path to handle stuff like this. I am sure it has already been thought out by smart people than me.

@nzoschke
Copy link
Author

nzoschke commented Mar 9, 2018 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants