Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloserDestructor ¶
CloseDestructor wraps any Closer to provide the Destructor interface.
func (CloserDestructor) Destroy ¶
func (c CloserDestructor) Destroy() error
type Destructor ¶
type Destructor interface {
Destroy() error
}
Destructor is a common interface for objects that need to be cleaned up.
type MultiDestructor ¶
type MultiDestructor []Destructor
MultiDestructor wraps multiple Destructors for easy cleanup.
func (*MultiDestructor) AddCloser ¶
func (m *MultiDestructor) AddCloser(closer io.Closer)
func (*MultiDestructor) AddDestructor ¶
func (m *MultiDestructor) AddDestructor(destructor Destructor)
func (MultiDestructor) Destroy ¶
func (m MultiDestructor) Destroy() error
Click to show internal directories.
Click to hide internal directories.