-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update clients/endpoints to use thriftrw Arg structs #92
Changes from 11 commits
fa8bd05
1066c7f
f812e05
85652f9
4c9fd12
594c1f8
ec8eb14
b849ef5
535f260
d146287
994dbb6
5d66407
e197154
6cb76f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,19 +16,3 @@ func getDirName() string { | |
_, file, _, _ := runtime.Caller(0) | ||
return zanzibar.GetDirnameFromRuntimeCaller(file) | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still need this template file? seems we can delete it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need this function There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok we only use this for endpoint tests, ill get rid of it for clients :) |
||
|
||
{{range .Services}} | ||
|
||
{{/* ========================= Method ========================= */ -}} | ||
|
||
{{range .Methods}} | ||
{{if len .RequestStruct | ne 0}} {{- /* generate struct to wrap request args*/ -}} | ||
// {{.RequestType}} is the http body type for endpoint {{.Name}}. | ||
type {{.RequestType}} struct { | ||
{{range .RequestStruct -}} | ||
{{title .Name}} {{.Type}} `json:"{{.Name}}"` | ||
{{end -}} | ||
}{{end -}} | ||
|
||
{{end}} {{- /* <range .Methods> */ -}} | ||
{{end}} {{- /* <range .Services> */ -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, we don't support
RequestBoxed=false
case, right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we kind of support it. We want to get rid of it, but that's a different PR.