Help us shape the future of Go! Take the 2026 Go Developer Survey

ginadapter

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT, Apache-2.0, MIT Imports: 4 Imported by: 0

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.

func Receipt

func Receipt(c *ginfw.Context) *mpp.Receipt

Receipt returns the verified receipt stored on the Gin context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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