Skip to content

Commit

Permalink
Add interceptors example
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael committed Nov 22, 2024
1 parent 724e38a commit 56bdec0
Show file tree
Hide file tree
Showing 20 changed files with 244 additions and 202 deletions.
2 changes: 1 addition & 1 deletion interceptors/design/design.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var Cache = Interceptor("Cache", func() {
Description("Server-side interceptor which implements a transparent cache for the loaded records")

ReadPayload(func() {
Attribute("id", String, "Record ID to cache")
Attribute("recordID", String, "Record ID to cache")
})

WriteResult(func() {
Expand Down
71 changes: 33 additions & 38 deletions interceptors/gen/example/client.go

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

113 changes: 53 additions & 60 deletions interceptors/gen/example/endpoints.go

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

Loading

0 comments on commit 56bdec0

Please sign in to comment.