Skip to content

Commit

Permalink
Interface needed for the test
Browse files Browse the repository at this point in the history
  • Loading branch information
kidambisrinivas committed Oct 8, 2024
1 parent 6fc818c commit d346723
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/capabilities/remote/trigger_subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit d346723

Please sign in to comment.