mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
64 lines
1.1 KiB
Go
64 lines
1.1 KiB
Go
package keel
|
|
|
|
import "context"
|
|
|
|
// Closer interface
|
|
type Closer interface {
|
|
Close()
|
|
}
|
|
|
|
// ErrorCloser interface
|
|
type ErrorCloser interface {
|
|
Close() error
|
|
}
|
|
|
|
// CloserWithContext interface
|
|
type CloserWithContext interface {
|
|
Close(ctx context.Context)
|
|
}
|
|
|
|
// ErrorCloserWithContext interface
|
|
type ErrorCloserWithContext interface {
|
|
Close(ctx context.Context) error
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// Unsubscriber interface
|
|
type Unsubscriber interface {
|
|
Unsubscribe()
|
|
}
|
|
|
|
// ErrorUnsubscriber interface
|
|
type ErrorUnsubscriber interface {
|
|
Unsubscribe() error
|
|
}
|
|
|
|
// UnsubscriberWithContext interface
|
|
type UnsubscriberWithContext interface {
|
|
Unsubscribe(ctx context.Context)
|
|
}
|
|
|
|
// ErrorUnsubscriberWithContext interface
|
|
type ErrorUnsubscriberWithContext interface {
|
|
Unsubscribe(ctx context.Context) error
|
|
}
|