-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: salaboy <Salaboy@gmail.com>
- Loading branch information
Showing
13 changed files
with
84 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 49 additions & 1 deletion
50
...onfigure/src/main/java/io/dapr/spring/boot/autoconfigure/client/DaprClientProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,55 @@ | ||
/* | ||
* Copyright 2024 The Dapr Authors | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package io.dapr.spring.boot.autoconfigure.client; | ||
|
||
import io.dapr.spring.data.DaprKeyValueAdapterResolver; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
@ConfigurationProperties(prefix = "dapr.client") | ||
public record DaprClientProperties(String httpEndpoint, String grpcEndpoint, Integer httpPort, Integer grpcPort) { | ||
public class DaprClientProperties { | ||
private String httpEndpoint; | ||
private String grpcEndpoint; | ||
private Integer httpPort; | ||
private Integer grpcPort; | ||
|
||
/** | ||
* Constructs a {@link DaprClientProperties}. | ||
* @param httpEndpoint http endpoint to interact with the Dapr Sidecar | ||
* @param grpcEndpoint grpc endpoint to interact with the Dapr Sidecar | ||
* @param httpPort http port to interact with the Dapr Sidecar | ||
* @param grpcPort grpc port to interact with the Dapr Sidecar | ||
*/ | ||
public DaprClientProperties(String httpEndpoint, String grpcEndpoint, Integer httpPort, Integer grpcPort) { | ||
this.httpEndpoint = httpEndpoint; | ||
this.grpcEndpoint = grpcEndpoint; | ||
this.httpPort = httpPort; | ||
this.grpcPort = grpcPort; | ||
} | ||
|
||
public String getHttpEndpoint() { | ||
return httpEndpoint; | ||
} | ||
|
||
public String getGrpcEndpoint() { | ||
return grpcEndpoint; | ||
} | ||
|
||
public Integer getHttpPort() { | ||
return httpPort; | ||
} | ||
|
||
public Integer getGrpcPort() { | ||
return grpcPort; | ||
} | ||
} |
14 changes: 13 additions & 1 deletion
14
...nfigure/src/main/java/io/dapr/spring/boot/autoconfigure/client/DaprConnectionDetails.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
...pring/dapr-spring-core/src/main/java/io/dapr/spring/core/client/DaprClientCustomizer.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters