mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
24 lines
379 B
Go
24 lines
379 B
Go
package interfaces
|
|
|
|
import "context"
|
|
|
|
// Stopper interface
|
|
type Stopper interface {
|
|
Stop()
|
|
}
|
|
|
|
// ErrorStopper interface
|
|
type ErrorStopper interface {
|
|
Stop() error
|
|
}
|
|
|
|
// StopperWithContext interface
|
|
type StopperWithContext interface {
|
|
Stop(ctx context.Context)
|
|
}
|
|
|
|
// ErrorStopperWithContext interface
|
|
type ErrorStopperWithContext interface {
|
|
Stop(ctx context.Context) error
|
|
}
|