Documentation ¶
Index ¶
- type FakeServiceMessaging
- func (f *FakeServiceMessaging) Notify(ctx context.Context, topicID string, uid string, flavour feedlib.Flavour, ...) error
- func (f *FakeServiceMessaging) Push(ctx context.Context, sender string, ...) 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 PushFn func( ctx context.Context, sender string, payload firebasetools.SendNotificationPayload, ) error }
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) Push ¶ added in v0.0.21
func (f *FakeServiceMessaging) Push( ctx context.Context, sender string, payload firebasetools.SendNotificationPayload, ) error
Push sends push notifications
func (*FakeServiceMessaging) ReverseSubscriptionIDs ¶
func (f *FakeServiceMessaging) ReverseSubscriptionIDs() map[string]string
ReverseSubscriptionIDs get Reverse Subscription IDs
func (*FakeServiceMessaging) SubscriptionIDs ¶
func (f *FakeServiceMessaging) SubscriptionIDs() map[string]string
SubscriptionIDs gets subscription IDs
func (*FakeServiceMessaging) TopicIDs ¶
func (f *FakeServiceMessaging) TopicIDs() []string
TopicIDs gets topic IDs
Click to show internal directories.
Click to hide internal directories.