Skip to content
Snippets Groups Projects
Commit d4e8024f authored by Loïc Ortola's avatar Loïc Ortola
Browse files

fix: docs

parent 14805de3
Branches main
No related tags found
No related merge requests found
......@@ -15,6 +15,15 @@ Your end of training practice project
## Troubleshooting, FAQ, Guidelines
### How can I connect to Temporal Cloud?
```go
c, err := client.Dial(client.Options{
HostPort: utils.TEMPORAL_HOST_PORT,
Namespace: utils.TEMPORAL_NAMESPACE,
ConnectionOptions: client.ConnectionOptions{TLS: &tls.Config{}},
Credentials: client.NewAPIKeyStaticCredentials(utils.TEMPORAL_API_KEY),
})
```
### Where can I find the API documentation?
The documentation is available as an OpenAPI Playground here: [https://lhws.hcaupert.fr/doc](https://lhws.hcaupert.fr/doc)
......
package main
import (
"crypto/tls"
"dc-hosts-reset/common"
"dc-hosts-reset/common/utils"
"go.temporal.io/api/cloud/identity/v1"
"log"
"go.temporal.io/sdk/client"
......@@ -10,7 +12,12 @@ import (
)
func main() {
c, err := client.Dial(client.Options{})
c, err := client.Dial(client.Options{
HostPort: utils.TEMPORAL_HOST_PORT,
Namespace: utils.TEMPORAL_NAMESPACE,
ConnectionOptions: client.ConnectionOptions{TLS: &tls.Config{}},
Credentials: client.NewAPIKeyStaticCredentials(utils.TEMPORAL_API_KEY),
})
if err != nil {
log.Fatalln("Unable to create client", err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment