File tree 3 files changed +12
-11
lines changed
_examples/hello-webrpc/webapp
3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 15
15
- uses : actions/checkout@v3
16
16
- name : Install webrpc-gen
17
17
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
19
19
chmod +x ./webrpc-gen
20
20
echo $PWD >> $GITHUB_PATH
21
21
Original file line number Diff line number Diff line change 1
- // hello-webrpc v1.0.0 e7d03ae5c6db914d3d31a21b762b6c3af1af1a07
1
+ // hello-webrpc v1.0.0 4fc01b139e8de5a1eb11b0581cd706326a434708
2
2
// --
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.
4
4
//
5
5
// webrpc-gen -schema=hello-api.ridl -target=../../ -exports=false -client -out=./webapp/client.gen.js
6
6
7
7
// WebRPC description and code-gen version
8
- export const WebRPCVersion = "v1"
8
+ const WebRPCVersion = "v1"
9
9
10
10
// Schema version of your RIDL schema
11
- export const WebRPCSchemaVersion = "v1.0.0"
11
+ const WebRPCSchemaVersion = "v1.0.0"
12
12
13
13
// Schema hash generated from your RIDL schema
14
- export const WebRPCSchemaHash = "e7d03ae5c6db914d3d31a21b762b6c3af1af1a07 "
14
+ const WebRPCSchemaHash = "4fc01b139e8de5a1eb11b0581cd706326a434708 "
15
15
16
16
//
17
17
// Types
@@ -27,7 +27,6 @@ class Empty {
27
27
constructor ( _data ) {
28
28
this . _data = { }
29
29
if ( _data ) {
30
-
31
30
}
32
31
}
33
32
@@ -43,21 +42,23 @@ class User {
43
42
this . _data [ 'id' ] = _data [ 'id' ]
44
43
this . _data [ 'USERNAME' ] = _data [ 'USERNAME' ]
45
44
this . _data [ 'created_at' ] = _data [ 'created_at' ]
46
-
47
45
}
48
46
}
47
+
49
48
get id ( ) {
50
49
return this . _data [ 'id' ]
51
50
}
52
51
set id ( value ) {
53
52
this . _data [ 'id' ] = value
54
53
}
54
+
55
55
get USERNAME ( ) {
56
56
return this . _data [ 'USERNAME' ]
57
57
}
58
58
set USERNAME ( value ) {
59
59
this . _data [ 'USERNAME' ] = value
60
60
}
61
+
61
62
get created_at ( ) {
62
63
return this . _data [ 'created_at' ]
63
64
}
Original file line number Diff line number Diff line change 59
59
// {{.WebrpcGenCommand}}
60
60
61
61
// WebRPC description and code-gen version
62
- export const WebRPCVersion = "{{.WebrpcVersion}}"
62
+ {{if $opts.exports}} export {{end}} const WebRPCVersion = "{{.WebrpcVersion}}"
63
63
64
64
// Schema version of your RIDL schema
65
- export const WebRPCSchemaVersion = "{{.SchemaVersion}}"
65
+ {{if $opts.exports}} export {{end}} const WebRPCSchemaVersion = "{{.SchemaVersion}}"
66
66
67
67
// Schema hash generated from your RIDL schema
68
- export const WebRPCSchemaHash = "{{.SchemaHash}}"
68
+ {{if $opts.exports}} export {{end}} const WebRPCSchemaHash = "{{.SchemaHash}}"
69
69
70
70
{{template "types" dict "Services" .Services "Types" .Types "Opts" $opts}}
71
71
{{- if $opts.client}}
You can’t perform that action at this time.
0 commit comments