-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
render annotations map for request paths and call onRequest hook if d…
…efined (#71) * call onDeprecate hook when method is deprecated * add request to deprecate hook * regenerate examples with latest webrpc * return error from OnRequest hook * rename to MethodAnnotationsFromContext * move annotations render to common (client, server) tmpl * move annotations above WebRPC services * rename to methodAnotations * rename to MethodAnnotationsFromCtx * call OnRequest before handler is called and handle err * use tabs * generate annotations for multiple services in the same map * prevent nil panics * render map[string]MethodCtx in template * get method ctx using request * dont export method * set updated ctx to Request * check if req != nil
- Loading branch information
1 parent
694c53c
commit 0ab8431
Showing
6 changed files
with
187 additions
and
8 deletions.
There are no files selected for viewing
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.
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