Documentation ¶ Index ¶ type Cleanup func New(logger *zerolog.Logger) Cleanup func (c *Cleanup) Add(fn func() error, name string) func (c *Cleanup) Run() error type CleanupFn 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 } Source Files ¶ View all Source files cleanup.go Click to show internal directories. Click to hide internal directories.