Documentation ¶
Overview ¶
Package idle contains a component for managing idleness (entering and exiting) based on RPC activity.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enforcer ¶
Enforcer is the functionality provided by grpc.ClientConn to enter and exit from idle mode.
type Manager ¶
type Manager interface { OnCallBegin() error OnCallEnd() Close() }
Manager defines the functionality required to track RPC activity on a channel.
func NewManager ¶
func NewManager(opts ManagerOptions) Manager
NewManager creates a new idleness manager implementation for the given idle timeout.
Click to show internal directories.
Click to hide internal directories.