keel/interfaces/shutdowner.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
419 B
Go

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