Skip to content

Commit

Permalink
expose GetSubscriptions method
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Mar 4, 2024
1 parent f578304 commit cb8e215
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions subscription.go
Expand Up @@ -408,6 +408,11 @@ func (sc *SubscriptionClient) GetContext() context.Context {
return sc.getContext().GetContext()
}

// GetSubscriptions get the list of active subscriptions
func (sc *SubscriptionClient) GetSubscriptions() map[string]Subscription {
return sc.getContext().GetSubscriptions()
}

// GetSubscription get the subscription state by id
func (sc *SubscriptionClient) GetSubscription(id string) *Subscription {
return sc.getContext().GetSubscription(id)
Expand Down

0 comments on commit cb8e215

Please sign in to comment.