Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORS ¶
func CORS() gin.HandlerFunc
func Errors ¶
func Errors(shutdown chan os.Signal) gin.HandlerFunc
Errors handles errors coming out of the call stack. It detects safe application errors (aka SafeError) that are used to respond to the requester in a normalized way. Unexpected errors (status >= 500) are logged.
func Webhook ¶
Webhook is a middleware that publishes a webhook after the request handler has finished writing the response TODO(https://github.com/TBD54566975/ssi-service/issues/435): currently this runs on each request even if no webhooks are registered. It should be updated to only run if webhooks are registered.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.