interceptors

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerInterceptor

type LoggerInterceptor struct {
	// contains filtered or unexported fields
}

func NewLoggerInterceptor

func NewLoggerInterceptor(logger *zap.Logger) *LoggerInterceptor

func (*LoggerInterceptor) Intercept

func (l *LoggerInterceptor) Intercept(chain ziface.IChain) ziface.IcResp

type RateLimitInterceptor added in v0.0.14

type RateLimitInterceptor struct {
	// contains filtered or unexported fields
}

RateLimitInterceptor rate limit interceptor

func NewRateLimitInterceptor added in v0.0.14

func NewRateLimitInterceptor(logger *zap.Logger, rateLimit int32) *RateLimitInterceptor

NewRateLimitInterceptor new rate limit interceptor

func (*RateLimitInterceptor) Intercept added in v0.0.14

func (r *RateLimitInterceptor) Intercept(chain ziface.IChain) ziface.IcResp

Intercept intercept

Jump to

Keyboard shortcuts

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