Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageHandler ¶
MessageHandler interface OnMessage function is what a subscriber will call. Any work done on a message should be done in the OnMessage function
type PublishClient ¶
PublishClient settings for the Publisher
func (*PublishClient) Publish ¶
func (pc *PublishClient) Publish(message *ps.Message)
Publish Publishes a message to the provided topic.
type SubscriberClient ¶
type SubscriberClient struct { Subscritpion *pubsub.Subscription Context context.Context Handler MessageHandler }
SubscriberClient Holdes the methods that will be used in the workers
func NewSubscriberClient ¶
func NewSubscriberClient(ctx context.Context, s *pubsub.Subscription, mh MessageHandler) SubscriberClient
NewSubscriberClient initilizes a new subscriber to be uused in a worker.
Click to show internal directories.
Click to hide internal directories.