middleware

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CacheStatusKey    = "Cache-Status"
	CacheStatusHit    = "Hit"
	CacheStatusSource = "Source"
	CacheStatusShared = "Shared "
)

Functions

func GinCache added in v0.2.0

func GinCache(store cache.Cache, expire time.Duration) gin.HandlerFunc

func GinLimitRateWithBucket added in v0.2.0

func GinLimitRateWithBucket(interval time.Duration, cap int64) gin.HandlerFunc

func GinRecover added in v0.2.0

func GinRecover() gin.HandlerFunc

func OtelGrpcStreamClientInterceptor added in v0.2.0

func OtelGrpcStreamClientInterceptor() grpc.DialOption

func OtelGrpcStreamServerInterceptor added in v0.2.0

func OtelGrpcStreamServerInterceptor() grpc.ServerOption

func OtelGrpcUnaryClientInterceptor added in v0.2.0

func OtelGrpcUnaryClientInterceptor() grpc.DialOption

func OtelGrpcUnaryServerInterceptor added in v0.2.0

func OtelGrpcUnaryServerInterceptor() grpc.ServerOption

func ServerDate

func ServerDate() gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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