Documentation ¶
Index ¶
- Variables
- func GinCache(store cache.Cache, expire time.Duration) gin.HandlerFunc
- func GinLimitRateWithBucket(interval time.Duration, cap int64) gin.HandlerFunc
- func GinRecover() gin.HandlerFunc
- func OtelGrpcStreamClientInterceptor() grpc.DialOption
- func OtelGrpcStreamServerInterceptor() grpc.ServerOption
- func OtelGrpcUnaryClientInterceptor() grpc.DialOption
- func OtelGrpcUnaryServerInterceptor() grpc.ServerOption
- func ServerDate() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CacheStatusKey = "Cache-Status" CacheStatusHit = "Hit" CacheStatusSource = "Source" )
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.