middlewares

package
v1.3.3-testnet Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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 Auth

func Auth() rpc.HandleCallMsgMiddleware

func Authenticate

func Authenticate(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc

func DailyMaxReqRateLimit

func DailyMaxReqRateLimit(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc

func Log

func Log(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc

func LogBatch

func LogBatch(next rpc.HandleBatchFunc) rpc.HandleBatchFunc

func Metrics

func Metrics(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 Recover

func Recover(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc

func UniformError

func UniformError(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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