guard non-send message actions by channel capability

This commit is contained in:
DBT
2026-02-24 09:14:43 +00:00
parent da862896e8
commit 3dd918d429
3 changed files with 29 additions and 0 deletions

View File

@@ -20,6 +20,11 @@ type Channel interface {
HealthCheck(ctx context.Context) error
}
// ActionCapable is an optional capability interface for channels that support non-send message actions.
type ActionCapable interface {
SupportsAction(action string) bool
}
type BaseChannel struct {
config interface{}
bus *bus.MessageBus