keel/unsubscriber.go
2022-03-14 13:12:25 +01:00

24 lines
441 B
Go

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