Versions in this module Expand all Collapse all v2 v2.6.0 Jul 29, 2022 v2.0.0 Aug 1, 2022 Changes in this version + func CloseClientConn(cc ClientConn) + type ClientConn = interface + Close func() error + Context func() context.Context + type KeepAlive struct + func NewKeepAlive(maxRetries uint32, onInactive OnInactiveFunc, ...) *KeepAlive + func (m *KeepAlive) OnInactive(cc ClientConn) + type Monitor = interface + CheckInactivity func(now time.Time, cc ClientConn) + Notify func() + func NewInactivityMonitor(duration time.Duration, onInactive OnInactiveFunc) Monitor + func NewNilMonitor() Monitor + type OnInactiveFunc = func(cc ClientConn)