Skip to content

Commit d942762

Browse files
committed
feat: connection url for secure grpc
1 parent 84d7bea commit d942762

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

rapida/configs/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
package configs
55

6-
var ASSISTANT_API = "workflow-01.rapida.ai"
7-
var ENDPOINT_API = "endpoint-01.rapida.ai"
6+
var ASSISTANT_API = "https://workflow-01.rapida.ai:443"
7+
var ENDPOINT_API = "https://endpoint-01.rapida.ai:443"
88
var WEB_API = "web-01.rapida.ai"
99

1010
var LOCAL_ASSISTANT_API = "localhost:9007"

rapida/connections/connections.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515

1616
type ConnectionConfig interface {
1717
WithLocal() ConnectionConfig
18+
WithInsecureConnection() ConnectionConfig
19+
WithCustomEndpoint(endpoint map[string]string) ConnectionConfig
1820
// all the clients
1921
TalkServiceClient() (web_api.TalkServiceClient, error)
2022
AuthenticationServiceClient() (web_api.AuthenticationServiceClient, error)
@@ -62,7 +64,7 @@ func NewConnectionConfig(auth RapidaCredential, endpoint map[string]string, inse
6264
return cc
6365
}
6466

65-
func (cc *connectionConfig) WithCustomEndpoint(endpoint map[string]string) *connectionConfig {
67+
func (cc *connectionConfig) WithCustomEndpoint(endpoint map[string]string) ConnectionConfig {
6668
if endpoint != nil {
6769
if assistant, ok := endpoint["assistant"]; ok {
6870
cc.endpoint.assistant = assistant
@@ -77,7 +79,7 @@ func (cc *connectionConfig) WithCustomEndpoint(endpoint map[string]string) *conn
7779
return cc
7880
}
7981

80-
func (cc *connectionConfig) WithInsecureConnection() *connectionConfig {
82+
func (cc *connectionConfig) WithInsecureConnection() ConnectionConfig {
8183
cc.insecure = true
8284
return cc
8385
}

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.7
1+
1.0.8

0 commit comments

Comments
 (0)