package idle

Import Path
	google.golang.org/grpc/internal/idle (on go.dev)

Dependency Relation
	imports 5 packages, and imported by one package

Involved Source Files Package idle contains a component for managing idleness (entering and exiting) based on RPC activity.
Package-Level Type Names (total 2, both are exported)
/* sort exporteds by: | */
Enforcer is the functionality provided by grpc.ClientConn to enter and exit from idle mode. ( Enforcer) EnterIdleMode() ( Enforcer) ExitIdleMode() error func NewManager(enforcer Enforcer, timeout time.Duration) *Manager
Manager implements idleness detection and calls the configured Enforcer to enter/exit idle mode when appropriate. Must be created by NewManager. Close stops the timer associated with the Manager, if it exists. EnterIdleModeForTesting instructs the channel to enter idle mode. ExitIdleMode instructs m to call the enforcer's ExitIdleMode and update m's internal state. OnCallBegin is invoked at the start of every RPC. OnCallEnd is invoked at the end of every RPC. func NewManager(enforcer Enforcer, timeout time.Duration) *Manager
Package-Level Functions (only one, which is exported)
NewManager creates a new idleness manager implementation for the given idle timeout. It begins in idle mode.
Package-Level Variables (only one, which is unexported)