File tree Expand file tree Collapse file tree 4 files changed +44
-2
lines changed
Expand file tree Collapse file tree 4 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 11from pydantic import BaseModel
22from simple_rpc .v2 .client import GrpcClientV2
33import asyncio
4- import pathlib
54
65client = GrpcClientV2 (
76 port = 50051
Original file line number Diff line number Diff line change 11from simple_rpc .v2 .server import GrpcServerV2
22from pydantic import BaseModel
3- import pathlib
43
54class RequestModel (BaseModel ):
65 pass
Original file line number Diff line number Diff line change 1+ // AUTOMATICALLY GENERATED BY SimpleRPC
2+
3+ syntax = "proto3" ;
4+ import "google/protobuf/empty.proto" ;
5+
6+ service Server {
7+ rpc example_method (example_methodRequest ) returns (example_methodResponce ) {}
8+ }
9+
10+ message example_methodResponce {
11+ int64 num2 = 1 ;
12+ int64 num4 = 2 ;
13+ }
14+ message example_methodRequest {
15+ }
16+
17+
18+
Original file line number Diff line number Diff line change 1+ // AUTOMATICALLY GENERATED BY SimpleRPC
2+
3+ syntax = "proto3" ;
4+ import "google/protobuf/empty.proto" ;
5+
6+ service Server {
7+ rpc example_method (example_methodRequest ) returns (example_methodResponce ) {}
8+ }
9+
10+ message example_methodResponce {
11+ int64 num2 = 1 ;
12+ int64 num4 = 2 ;
13+ }
14+ message example_methodRequest {
15+ }
16+
17+
18+
19+ service SOTServer {
20+ rpc get_active_proto (get_active_protoRequest ) returns (get_active_protoResponce ) {}
21+ }
22+ message get_active_protoResponce {
23+ string proto = 1 ;
24+ }
25+ message get_active_protoRequest {
26+ }
You can’t perform that action at this time.
0 commit comments