middlewares

package
v1.1.3-testnet Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Web3PayBillingMode      = "billing"
	Web3PaySubscriptionMode = "subscription"
)

Variables

This section is empty.

Functions

func AntiInjection

func AntiInjection(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 MustNewVipOnlyAccessControlMiddlewareFromViper

func MustNewVipOnlyAccessControlMiddlewareFromViper() rpc.HandleCallMsgMiddleware

func MustNewWeb3PayMiddlewareFromViper

func MustNewWeb3PayMiddlewareFromViper() (rpc.HandleCallMsgMiddleware, *web3payConfig, bool)

func RateLimit

func RateLimit(next rpc.HandleCallMsgFunc) rpc.HandleCallMsgFunc

func RateLimitBatch

func RateLimitBatch(next rpc.HandleBatchFunc) rpc.HandleBatchFunc

func Recover

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