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 ¶
Click to show internal directories.
Click to hide internal directories.