mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-22 15:53:45 +00:00
14 lines
309 B
Go
14 lines
309 B
Go
package internal
|
|
|
|
import (
|
|
"code.tjo.space/mentos1386/zdravko/internal/config"
|
|
"go.temporal.io/sdk/client"
|
|
)
|
|
|
|
func ConnectToTemporal(cfg *config.Config) (client.Client, error) {
|
|
c, err := client.Dial(client.Options{HostPort: cfg.Temporal.ServerHost})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return c, nil
|
|
}
|