keel/interfaces/closer.go
2023-09-08 22:24:31 +02:00

26 lines
380 B
Go

package interfaces
import (
"context"
)
// Closer interface
type Closer interface {
Close()
}
// ErrorCloser interface
type ErrorCloser interface {
Close() error
}
// CloserWithContext interface
type CloserWithContext interface {
Close(ctx context.Context)
}
// ErrorCloserWithContext interface
type ErrorCloserWithContext interface {
Close(ctx context.Context) error
}