mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
24 lines
447 B
Go
24 lines
447 B
Go
package interfaces
|
|
|
|
import "context"
|
|
|
|
// 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
|
|
}
|