keel/stopper.go
Kevin Franklin Kim 043a474bf9 feat: add stopper
2022-05-07 17:49:10 +02:00

24 lines
373 B
Go

package keel
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
}