-
Notifications
You must be signed in to change notification settings - Fork 178
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
[improve][doc] Add sample code to use Copper Argos in Golang #457
Conversation
@zymap Could you please review this PR? Thank you! |
ping @nodece |
docs/security-athenz.md
Outdated
"keyId": "v1", | ||
} | ||
|
||
client, err := pulsar.NewClient(ClientOptions{ |
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.
client, err := pulsar.NewClient(ClientOptions{ | |
client, err := pulsar.NewClient(pulsar.ClientOptions{ |
docs/security-athenz.md
Outdated
URL: "pulsar://my-broker.com:6650", | ||
Authentication: basicAuth, | ||
}) | ||
authParams := map[string]string{ |
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.
Could you use the old way to create the provider?
docs/security-athenz.md
Outdated
"caCert": "file:///path/to/cacert.pem", | ||
} | ||
|
||
client, err := pulsar.NewClient(ClientOptions{ |
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.
client, err := pulsar.NewClient(ClientOptions{ | |
client, err := pulsar.NewClient(pulsar.ClientOptions{ |
docs/security-athenz.md
Outdated
<TabItem value="Go"> | ||
|
||
```go | ||
authParams := map[string]string{ |
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.
Same above.
@nodece Addressed your comments. PTAL. |
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.
LGTM
Documentation
This is a continuation of #410. I've also added some parameters to the Athenz authentication provider for Golang to support Copper Argos (cf. apache/pulsar-client-go#960), so I'll add sample code for Golang. Also, the existing sample code was wrong, so I fixed it.
doc
doc-required
doc-not-needed
doc-complete