From d3467236d326c4a0f72564f744f825e995853303 Mon Sep 17 00:00:00 2001 From: Sri Kidambi <1702865+kidambisrinivas@users.noreply.github.com> Date: Tue, 8 Oct 2024 18:52:38 +0100 Subject: [PATCH] Interface needed for the test --- core/capabilities/remote/trigger_subscriber.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/capabilities/remote/trigger_subscriber.go b/core/capabilities/remote/trigger_subscriber.go index 967b59258ae..9f40c6c1f51 100644 --- a/core/capabilities/remote/trigger_subscriber.go +++ b/core/capabilities/remote/trigger_subscriber.go @@ -47,6 +47,11 @@ type subRegState struct { rawRequest []byte } +type TriggerSubscriber interface { + commoncap.TriggerCapability + Receive(ctx context.Context, msg *types.MessageBody) +} + var _ commoncap.TriggerCapability = &triggerSubscriber{} var _ types.Receiver = &triggerSubscriber{} var _ services.Service = &triggerSubscriber{}