Documentation
¶
Overview ¶
Package echo provides MPP middleware for the Echo web framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware( mppServer *server.Mpp, charge server.ChargeFunc, ) echo.MiddlewareFunc
Middleware returns an Echo middleware function that enforces MPP payment.
charge determines the payment requirements per request. Use server.StaticCharge for fixed pricing or supply a closure for dynamic pricing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.