Documentation ¶
Index ¶
- type FakeServiceMessaging
- func (f *FakeServiceMessaging) Notify(ctx context.Context, topicID string, uid string, flavour feedlib.Flavour, ...) error
- func (f *FakeServiceMessaging) ReverseSubscriptionIDs() map[string]string
- func (f *FakeServiceMessaging) SubscriptionIDs() map[string]string
- func (f *FakeServiceMessaging) TopicIDs() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeServiceMessaging ¶
type FakeServiceMessaging struct { NotifyFn func( ctx context.Context, topicID string, uid string, flavour feedlib.Flavour, payload feedlib.Element, metadata map[string]interface{}, ) error // Ask the notification service about the topics that it knows about TopicIDsFn func() []string SubscriptionIDsFn func() map[string]string ReverseSubscriptionIDsFn func() map[string]string }
FakeServiceMessaging is a mock implementation of the "messaging" service
func (*FakeServiceMessaging) Notify ¶
func (f *FakeServiceMessaging) Notify( ctx context.Context, topicID string, uid string, flavour feedlib.Flavour, payload feedlib.Element, metadata map[string]interface{}, ) error
Notify Sends a message to a topic
func (*FakeServiceMessaging) ReverseSubscriptionIDs ¶
func (f *FakeServiceMessaging) ReverseSubscriptionIDs() map[string]string
ReverseSubscriptionIDs ...
func (*FakeServiceMessaging) SubscriptionIDs ¶
func (f *FakeServiceMessaging) SubscriptionIDs() map[string]string
SubscriptionIDs ...
func (*FakeServiceMessaging) TopicIDs ¶
func (f *FakeServiceMessaging) TopicIDs() []string
TopicIDs ...
Click to show internal directories.
Click to hide internal directories.