keel/shutdowner.go
2022-03-14 13:12:25 +01:00

24 lines
413 B
Go

package keel
import "context"
// Shutdowner interface
type Shutdowner interface {
Shutdown()
}
// ErrorShutdowner interface
type ErrorShutdowner interface {
Shutdown() error
}
// ShutdownerWithContext interface
type ShutdownerWithContext interface {
Shutdown(ctx context.Context)
}
// ErrorShutdownerWithContext interface
type ErrorShutdownerWithContext interface {
Shutdown(ctx context.Context) error
}