keel/interfaces/stopper.go
Kevin Franklin Kim 07f0c394d5
feat: add GoRoutine service
moves all services into the service package
2023-09-08 12:17:23 +02:00

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
}