cleanup

package
v0.80.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleanup

type Cleanup struct {
	Fns       []CleanupFn
	TimeLimit time.Duration
	// contains filtered or unexported fields
}

func New

func New(logger *zerolog.Logger) Cleanup

func (*Cleanup) Add

func (c *Cleanup) Add(fn func() error, name string)

func (*Cleanup) Run

func (c *Cleanup) Run() error

type CleanupFn

type CleanupFn struct {
	Fn   func() error
	Name string
}

Jump to

Keyboard shortcuts

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