inactivity

package
v2.3.0-on-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseClientConn

func CloseClientConn(cc ClientConn)

Types

type ClientConn

type ClientConn interface {
	Context() context.Context
	Close() error
}

type Monitor

type Monitor interface {
	Run(cc ClientConn) error
	Notify()
}

func NewInactivityMonitor

func NewInactivityMonitor(interval time.Duration, onInactive OnInactiveFunc) Monitor

type OnInactiveFunc

type OnInactiveFunc func(cc ClientConn)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL