cleaner

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package cleaner 提供清理器接口,用于管理可清理资源

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Init()
	Wait()
	Add(name string, callback ShutdownCallback)
	Clean()
}

Interface 定义了清理器接口,用于初始化、添加和执行清理操作

type ShutdownCallback

type ShutdownCallback func(ctx context.Context) error

Jump to

Keyboard shortcuts

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