idlemgr

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidInstance = errors.New("invalid instance")
	ErrInvalidClient   = errors.New("invalid client")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	io.Closer

	Ref() string
	Inc()
	Get() uint32
}

type Manager

type Manager interface {
	libsrv.Runner
	io.Closer

	Register(Client) error
	Unregister(Client) error
}

func New

func New(ctx context.Context, idle, tick durbig.Duration) (Manager, error)

Jump to

Keyboard shortcuts

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