Directories ¶
Path | Synopsis |
---|---|
Package main shows how to use a dependency to check if a user is logged in using a special custom Go type `Authenticated`, which when, present on a controller's method or a field then it limits the visibility to "authenticated" users only.
|
Package main shows how to use a dependency to check if a user is logged in using a special custom Go type `Authenticated`, which when, present on a controller's method or a field then it limits the visibility to "authenticated" users only. |
grpc-client
Package main implements a client for Greeter service.
|
Package main implements a client for Greeter service. |
Package main shows how you can add middleware to an mvc Application, simply by using its `Router` which is a sub router(an iris.Party) of the main iris app.
|
Package main shows how you can add middleware to an mvc Application, simply by using its `Router` which is a sub router(an iris.Party) of the main iris app. |
per-method
If you want to use it as middleware for the entire controller you can use its router which is just a sub router to add it as you normally do with standard API:
|
If you want to use it as middleware for the entire controller you can use its router which is just a sub router to add it as you normally do with standard API: |
without-ctx-next
Package main shows how to add done handlers in an MVC application without the necessity of `ctx.Next()` inside the controller's methods.
|
Package main shows how to add done handlers in an MVC application without the necessity of `ctx.Next()` inside the controller's methods. |
Package main shows how to match "/xxx.json" in MVC handler.
|
Package main shows how to match "/xxx.json" in MVC handler. |
Click to show internal directories.
Click to hide internal directories.