Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
Middleware is the signature of the function that needs to be implemented to use middleware functionnality
You can call the next middleware during the execution of the defined middleware in order to wrap code execution (for example, to time execution, or recover in case of panic).
func Logging ¶
func Logging(logger log.Interface) Middleware
Logging is a middleware that logs messages in reception and in publication
func Recovery ¶
func Recovery(logger log.Interface) Middleware
Recovery is a middleware that recovers from panic in middlewares coming after it and user code from subscription.
Click to show internal directories.
Click to hide internal directories.