forked from apache/dubbo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
154 additions
and
263 deletions.
There are no files selected for viewing
8 changes: 2 additions & 6 deletions
8
.../dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/netty4/Http2WireProtocol.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
148 changes: 0 additions & 148 deletions
148
dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/GrpcElf.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/GrpcStatus.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.apache.dubbo.rpc.protocol.tri; | ||
|
||
/** | ||
* See https://github.com/grpc/grpc/blob/master/doc/statuscodes.md | ||
*/ | ||
enum GrpcStatus { | ||
OK(0), | ||
NOT_FOUND(5), | ||
UNIMPLEMENTED(12), | ||
INTERNAL(13); | ||
|
||
final int code; | ||
|
||
GrpcStatus(int code){ | ||
this.code=code; | ||
} | ||
} |
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
11 changes: 4 additions & 7 deletions
11
dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/Marshaller.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
11 changes: 11 additions & 0 deletions
11
...-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/TripleConstant.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.apache.dubbo.rpc.protocol.tri; | ||
|
||
public interface TripleConstant { | ||
String STATUS_KEY = "grpc-status"; | ||
String MESSAGE_KEY = "grpc-message"; | ||
String CONTENT_TYPE_KEY = "content-type"; | ||
String CONTENT_PROTO = "application/grpc+proto"; | ||
|
||
String APPLICATION_GRPC = "application/grpc"; | ||
|
||
} |
Oops, something went wrong.