Documentation ¶
Overview ¶
Package pubsub handles interactions with PubSub framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher interface { Publish(request *data.ScorecardBatchRequest) error Close() error }
Publisher interface is used to publish cron job requests to PubSub.
type Subscriber ¶
type Subscriber interface { SynchronousPull() (*data.ScorecardBatchRequest, error) Ack() Nack() Close() error }
Subscriber interface is used pull messages from PubSub.
func CreateSubscriber ¶
func CreateSubscriber(ctx context.Context, subscriptionURL string) (Subscriber, error)
CreateSubscriber returns an implementation of Subscriber interface. Currently returns an instance of gcsSubscriber.
Click to show internal directories.
Click to hide internal directories.