Documentation
¶
Overview ¶
Package ginadapter provides Gin middleware for MPP-protected routes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChargeMiddleware ¶
func ChargeMiddleware(m *server.Mpp, params server.ChargeParams) ginfw.HandlerFunc
ChargeMiddleware protects a Gin route with the server charge flow.
func Credential ¶
func Credential(c *ginfw.Context) *mpp.Credential
Credential returns the verified credential stored on the Gin context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.