middleware

package
v0.0.0-...-0fc66b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware() gin.HandlerFunc

func AuthorizationMiddleware

func AuthorizationMiddleware() gin.HandlerFunc

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

func Webhook(webhookService *webhook.Service, noun webhook.Noun, verb webhook.Verb) gin.HandlerFunc

Webhook is a middleware that publishes a webhook after the request handler has finished writing the response TODO(https://github.com/cyware/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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL