File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed
_examples/hello-webrpc/webapp Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1515 - uses : actions/checkout@v3
1616 - name : Install webrpc-gen
1717 run : |
18- curl -o ./webrpc-gen -fLJO https://github.com/webrpc/webrpc/releases/download/v0.11.3 /webrpc-gen.linux-amd64
18+ curl -o ./webrpc-gen -fLJO https://github.com/webrpc/webrpc/releases/download/v0.18.6 /webrpc-gen.linux-amd64
1919 chmod +x ./webrpc-gen
2020 echo $PWD >> $GITHUB_PATH
2121
Original file line number Diff line number Diff line change 1- // hello-webrpc v1.0.0 e7d03ae5c6db914d3d31a21b762b6c3af1af1a07
1+ // hello-webrpc v1.0.0 4fc01b139e8de5a1eb11b0581cd706326a434708
22// --
3- // Code generated by webrpc-gen@v0.11.3 with custom generator. DO NOT EDIT.
3+ // Code generated by webrpc-gen@v0.18.6 with ../../ generator. DO NOT EDIT.
44//
55// webrpc-gen -schema=hello-api.ridl -target=../../ -exports=false -client -out=./webapp/client.gen.js
66
77// WebRPC description and code-gen version
8- export const WebRPCVersion = "v1"
8+ const WebRPCVersion = "v1"
99
1010// Schema version of your RIDL schema
11- export const WebRPCSchemaVersion = "v1.0.0"
11+ const WebRPCSchemaVersion = "v1.0.0"
1212
1313// Schema hash generated from your RIDL schema
14- export const WebRPCSchemaHash = "e7d03ae5c6db914d3d31a21b762b6c3af1af1a07 "
14+ const WebRPCSchemaHash = "4fc01b139e8de5a1eb11b0581cd706326a434708 "
1515
1616//
1717// Types
@@ -27,7 +27,6 @@ class Empty {
2727 constructor ( _data ) {
2828 this . _data = { }
2929 if ( _data ) {
30-
3130 }
3231 }
3332
@@ -43,21 +42,23 @@ class User {
4342 this . _data [ 'id' ] = _data [ 'id' ]
4443 this . _data [ 'USERNAME' ] = _data [ 'USERNAME' ]
4544 this . _data [ 'created_at' ] = _data [ 'created_at' ]
46-
4745 }
4846 }
47+
4948 get id ( ) {
5049 return this . _data [ 'id' ]
5150 }
5251 set id ( value ) {
5352 this . _data [ 'id' ] = value
5453 }
54+
5555 get USERNAME ( ) {
5656 return this . _data [ 'USERNAME' ]
5757 }
5858 set USERNAME ( value ) {
5959 this . _data [ 'USERNAME' ] = value
6060 }
61+
6162 get created_at ( ) {
6263 return this . _data [ 'created_at' ]
6364 }
Original file line number Diff line number Diff line change 5959// {{.WebrpcGenCommand}}
6060
6161// WebRPC description and code-gen version
62- export const WebRPCVersion = "{{.WebrpcVersion}}"
62+ {{if $opts.exports}} export {{end}} const WebRPCVersion = "{{.WebrpcVersion}}"
6363
6464// Schema version of your RIDL schema
65- export const WebRPCSchemaVersion = "{{.SchemaVersion}}"
65+ {{if $opts.exports}} export {{end}} const WebRPCSchemaVersion = "{{.SchemaVersion}}"
6666
6767// Schema hash generated from your RIDL schema
68- export const WebRPCSchemaHash = "{{.SchemaHash}}"
68+ {{if $opts.exports}} export {{end}} const WebRPCSchemaHash = "{{.SchemaHash}}"
6969
7070{{template "types" dict "Services" .Services "Types" .Types "Opts" $opts}}
7171{{- if $opts.client}}
You can’t perform that action at this time.
0 commit comments