Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeepAlive ¶
type KeepAlive[C Conn] struct { // contains filtered or unexported fields }
func NewKeepAlive ¶
func NewKeepAlive[C Conn](maxRetries uint32, onInactive OnInactiveFunc[C], sendPing func(cc C, receivePong func()) (func(), error)) *KeepAlive[C]
func (*KeepAlive[C]) OnInactive ¶
func (m *KeepAlive[C]) OnInactive(cc C)
type Monitor ¶
type Monitor[C Conn] struct { // contains filtered or unexported fields }
func (*Monitor[C]) CheckInactivity ¶
func (*Monitor[C]) LastActivity ¶
type NilMonitor ¶
type NilMonitor[C Conn] struct{}
func NewNilMonitor ¶
func NewNilMonitor[C Conn]() *NilMonitor[C]
func (*NilMonitor[C]) CheckInactivity ¶
func (m *NilMonitor[C]) CheckInactivity(time.Time, C)
func (*NilMonitor[C]) Notify ¶
func (m *NilMonitor[C]) Notify()
type OnInactiveFunc ¶
type OnInactiveFunc[C Conn] func(cc C)
Click to show internal directories.
Click to hide internal directories.