Skip to content

Commit

Permalink
Prehook to replace fairly useless method override hook (#92)
Browse files Browse the repository at this point in the history
* Replace full method hook with prehook in autogen service methods

* Fix error in comments
  • Loading branch information
Calebjh authored Jul 16, 2018
1 parent 57edcd2 commit 8c7a27a
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 88 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ For CRUD methods to be generated correctly you need to follow specific conventio
- Delete methods require the `(gorm.method).object_type` option to indicate
which Ormable Type it should delete, and has no response type requirements.

To customize the generated server, embed it into a new type and override any
desired functions.

If conventions are not met stubs are generated for CRUD methods. As seen in the
[feature_demo/demo_service](example/feature_demo/demo_service.proto) example.

Expand Down
176 changes: 100 additions & 76 deletions example/feature_demo/demo_service.pb.gorm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8c7a27a

Please sign in to comment.