-
Notifications
You must be signed in to change notification settings - Fork 0
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
guoshijiang
committed
Mar 15, 2024
1 parent
d281305
commit 74e6c3f
Showing
6 changed files
with
84 additions
and
45 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
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,40 @@ | ||
# Generated by the Protocol Buffers compiler. DO NOT EDIT! | ||
# source: savour_rpc/airdrop.proto | ||
# plugin: grpclib.plugin.main | ||
import abc | ||
import typing | ||
|
||
import grpclib.const | ||
import grpclib.client | ||
if typing.TYPE_CHECKING: | ||
import grpclib.server | ||
|
||
from services.savour_rpc import airdrop_pb2 | ||
|
||
|
||
class AirdropServiceBase(abc.ABC): | ||
|
||
@abc.abstractmethod | ||
async def submitDppLinkPoints(self, stream: 'grpclib.server.Stream[savour_rpc.airdrop_pb2.DppLinkPointsReq, savour_rpc.airdrop_pb2.DppLinkPointsRep]') -> None: | ||
pass | ||
|
||
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]: | ||
return { | ||
'/services.savour_rpc.airdrop.AirdropService/submitDppLinkPoints': grpclib.const.Handler( | ||
self.submitDppLinkPoints, | ||
grpclib.const.Cardinality.UNARY_UNARY, | ||
airdrop_pb2.DppLinkPointsReq, | ||
airdrop_pb2.DppLinkPointsRep, | ||
), | ||
} | ||
|
||
|
||
class AirdropServiceStub: | ||
|
||
def __init__(self, channel: grpclib.client.Channel) -> None: | ||
self.submitDppLinkPoints = grpclib.client.UnaryUnaryMethod( | ||
channel, | ||
'/services.savour_rpc.airdrop.AirdropService/submitDppLinkPoints', | ||
airdrop_pb2.DppLinkPointsReq, | ||
airdrop_pb2.DppLinkPointsRep, | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.