Skip to content
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

Add Parameter for Payments GRPC API Server #2

Merged
merged 1 commit into from Oct 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion config_test.go
Expand Up @@ -8,7 +8,7 @@ import (
)

func TestGenerateAndLoadConfig(t *testing.T) {
testconf := "./testconfig.json"
testconf := "./example.config.json"
defer os.Remove(testconf)
if err := config.GenerateConfig(testconf); err != nil {
t.Fatal(err)
Expand Down
14 changes: 10 additions & 4 deletions types.go
Expand Up @@ -16,7 +16,6 @@ type TemporalConfig struct {

// API configures the Temporal API
type API struct {
AdminUser string `json:"admin_user"`
Connection struct {
Certificates struct {
CertPath string `json:"cert_path"`
Expand All @@ -28,9 +27,16 @@ type API struct {
AuthKey string `json:"auth_key"`
EncryptionKey string `json:"encryption_key"`
} `json:"sessions"`
RollbarToken string `json:"rollbar_token"`
JwtKey string `json:"jwt_key"`
SizeLimitInGigaBytes string `json:"size_limit_in_giga_bytes"`
JwtKey string `json:"jwt_key"`
SizeLimitInGigaBytes string `json:"size_limit_in_giga_bytes"`
Payment Payment `json:"payment"`
}

// Payment configures the GRPC Payment Server API
type Payment struct {
Address string `json:"address"`
Port string `json:"port"`
Protocol string `json:"protocol"`
}

// Database configures Temporal's connection to a Postgres database
Expand Down