Documentation ¶
Index ¶
- Constants
- Variables
- func Allowlists(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
- func AntiInjection(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
- func Auth() rpc.HandleCallMsgMiddleware
- func Authenticate(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
- func DailyMaxReqRateLimit(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
- func Log(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
- func LogBatch(next rpc.HandleBatchFunc) rpc.HandleBatchFunc
- func Metrics(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
- func MetricsBatch(next rpc.HandleBatchFunc) rpc.HandleBatchFunc
- func MustNewWeb3PayMiddlewareFromViper() (rpc.HandleCallMsgMiddleware, *web3payConfig, bool)
- func QpsRateLimit(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
- func Recover(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
- func UniformError(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
Constants ¶
View Source
const ( Web3PayBillingMode = "billing" Web3PaySubscriptionMode = "subscription" )
Variables ¶
View Source
var (
ErrorServerTooBusy = errors.New("server is too busy, please try again later")
)
Functions ¶
func Allowlists ¶
func Allowlists(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
func AntiInjection ¶
func AntiInjection(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
func Authenticate ¶
func Authenticate(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
func DailyMaxReqRateLimit ¶
func DailyMaxReqRateLimit(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
func MetricsBatch ¶
func MetricsBatch(next rpc.HandleBatchFunc) rpc.HandleBatchFunc
func MustNewWeb3PayMiddlewareFromViper ¶
func MustNewWeb3PayMiddlewareFromViper() (rpc.HandleCallMsgMiddleware, *web3payConfig, bool)
func QpsRateLimit ¶
func QpsRateLimit(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
func UniformError ¶
func UniformError(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.