Documentation
¶
Index ¶
- Constants
- func IOTagFromContext(ctx context.Context) string
- func NewAdjustOutgoingIOTagStreamClientInterceptor() grpc.StreamClientInterceptor
- func NewAdjustOutgoingIOTagUnaryClientInterceptor() grpc.UnaryClientInterceptor
- func NewMaxActiveRPCLimiterStreamServerInterceptor(getLimiter func() limiting.Limiter) grpc.StreamServerInterceptor
- func NewMaxActiveRPCLimiterUnaryServerInterceptor(getLimiter func() limiting.Limiter) grpc.UnaryServerInterceptor
- func NewSetCriticalIOTagUnaryServerInterceptor() grpc.UnaryServerInterceptor
- type IOTag
- type IOTagConfig
- type Limiter
- type LimiterConfig
- type Metrics
- type OpConfig
- type ReleaseFunc
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func IOTagFromContext ¶
func NewAdjustOutgoingIOTagStreamClientInterceptor ¶
func NewAdjustOutgoingIOTagStreamClientInterceptor() grpc.StreamClientInterceptor
func NewAdjustOutgoingIOTagUnaryClientInterceptor ¶
func NewAdjustOutgoingIOTagUnaryClientInterceptor() grpc.UnaryClientInterceptor
func NewMaxActiveRPCLimiterStreamServerInterceptor ¶
func NewMaxActiveRPCLimiterStreamServerInterceptor(getLimiter func() limiting.Limiter) grpc.StreamServerInterceptor
func NewMaxActiveRPCLimiterUnaryServerInterceptor ¶
func NewMaxActiveRPCLimiterUnaryServerInterceptor(getLimiter func() limiting.Limiter) grpc.UnaryServerInterceptor
func NewSetCriticalIOTagUnaryServerInterceptor ¶
func NewSetCriticalIOTagUnaryServerInterceptor() grpc.UnaryServerInterceptor
Types ¶
type IOTagConfig ¶
type Limiter ¶
type Limiter interface { ReadRequest(context.Context) (ReleaseFunc, error) WriteRequest(context.Context) (ReleaseFunc, error) SetParentID(string) SetMetrics(Metrics) Close() }
func NewLimiter ¶
func NewLimiter(c LimiterConfig) (Limiter, error)
func NewNoopLimiter ¶
func NewNoopLimiter() Limiter
type LimiterConfig ¶
func (*LimiterConfig) Validate ¶
func (c *LimiterConfig) Validate() error
type OpConfig ¶
type OpConfig struct { MaxWaitingOps int64 MaxRunningOps int64 IdleTimeout time.Duration Tags []IOTagConfig }
type ReleaseFunc ¶
type ReleaseFunc scheduling.ReleaseFunc
Click to show internal directories.
Click to hide internal directories.