interceptors

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

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LimitRequestsPerSecond     = 10
	LimitRequestNoncePerSecond = 1
)

Variables

This section is empty.

Functions

func GenerateJWSToken

func GenerateJWSToken(serverPrivateKey ed25519.PrivateKey, userDid string, mailioDID *did.DID, challenge, userPublicKeyEd25519 string) (string, error)

func JWSMiddleware

func JWSMiddleware(userProfileService *services.UserProfileService) gin.HandlerFunc

func RateLimitMiddleware

func RateLimitMiddleware() gin.HandlerFunc

func SignatureMiddleware

func SignatureMiddleware(env *types.Environment, mtpService *services.MtpService) gin.HandlerFunc

validating signatures of incoming requests

Types

This section is empty.

Jump to

Keyboard shortcuts

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