{"modulePath":"github.com/GoogleChrome/webstatus.dev/lib","version":"v0.0.0-20261125220119-7dfa3a9d4913","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package gcppubsubadapters\n\n## Functions\n\n```go\nfunc RunGroup(ctx context.Context, fns ...func(ctx context.Context) error) error\n```\nRunGroup runs multiple blocking functions concurrently. - It returns the first error encountered. - If one function fails, it cancels the context for the others. - It waits for all functions to exit before returning.\n\n## Types\n\n```go\ntype BackendAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBackendAdapter(client EventPublisher, searchConfigTopicID, vcsScanTopicID string) *BackendAdapter\n```\n\n```go\nfunc (p *BackendAdapter) PublishCodeScanTask(\n\tctx context.Context,\n\ttask codescantaskv1.CodeScanTaskEvent,\n) error\n```\n\n```go\nfunc (p *BackendAdapter) PublishSearchConfigurationChanged(\n\tctx context.Context,\n\tresp *backend.SavedSearchResponse,\n\tuserID string,\n\tisCreation bool) error\n```\n\n```go\ntype BatchFanOutPublisherAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBatchFanOutPublisherAdapter(client EventPublisher, topicID string) *BatchFanOutPublisherAdapter\n```\n\n```go\nfunc (a *BatchFanOutPublisherAdapter) PublishRefreshCommand(ctx context.Context,\n\tcmd workertypes.RefreshSearchCommand) error\n```\n\n```go\ntype EmailWorkerMessageHandler interface {\n\tProcessMessage(ctx context.Context, job workertypes.IncomingEmailDeliveryJob) error\n}\n```\nEmailWorkerMessageHandler defines the interface for the Sender logic.\n\n```go\ntype EmailWorkerSubscriberAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewEmailWorkerSubscriberAdapter(\n\tsender EmailWorkerMessageHandler,\n\teventSubscriber EventSubscriber,\n\tsubscriptionID string,\n) *EmailWorkerSubscriberAdapter\n```\n\n```go\nfunc (a *EmailWorkerSubscriberAdapter) Subscribe(ctx context.Context) error\n```\n\n```go\ntype EventProducerBatchUpdateHandler interface {\n\tProcessBatchUpdate(ctx context.Context, triggerID string, frequency workertypes.JobFrequency) error\n}\n```\n\n```go\ntype EventProducerPublisherAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewEventProducerPublisherAdapter(eventPublisher EventPublisher, topicID string) *EventProducerPublisherAdapter\n```\n\n```go\nfunc (a *EventProducerPublisherAdapter) Publish(ctx context.Context,\n\treq workertypes.PublishEventRequest) (string, error)\n```\n\n```go\ntype EventProducerSearchMessageHandler interface {\n\tProcessSearch(ctx context.Context, searchID string, searchName string, query string,\n\t\tfrequency workertypes.JobFrequency, triggerID string) error\n}\n```\n\n```go\ntype EventProducerSubscriberAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewEventProducerSubscriberAdapter(\n\tsearchMessageHandler EventProducerSearchMessageHandler,\n\tbatchUpdateHandler EventProducerBatchUpdateHandler,\n\teventSubscriber EventSubscriber,\n\tconfig SubscriberConfig,\n) *EventProducerSubscriberAdapter\n```\n\n```go\nfunc (a *EventProducerSubscriberAdapter) Subscribe(ctx context.Context) error\n```\n\n```go\ntype EventPublisher interface {\n\tPublish(ctx context.Context, topicID string, data []byte) (string, error)\n}\n```\n\n```go\ntype EventSubscriber interface {\n\tSubscribe(ctx context.Context, subID string,\n\t\thandler func(ctx context.Context, msgID string, data []byte) error) error\n}\n```\n\n```go\ntype GitHubIssueDeliverySubscriberAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewGitHubIssueDeliverySubscriberAdapter(\n\tdeliverer GitHubIssueJobDeliverer,\n\teventSubscriber EventSubscriber,\n\tsubscriptionID string,\n) *GitHubIssueDeliverySubscriberAdapter\n```\n\n```go\nfunc (a *GitHubIssueDeliverySubscriberAdapter) Subscribe(ctx context.Context) error\n```\n\n```go\ntype GitHubIssueJobDeliverer interface {\n\tProcessJob(ctx context.Context, job githubissuedeliveryv1.GitHubIssueDeliveryEvent) error\n}\n```\nGitHubIssueJobDeliverer defines the interface for delivering GitHub issues.\n\n```go\ntype PushDeliveryMessageHandler interface {\n\tProcessEvent(ctx context.Context, metadata workertypes.DispatchEventMetadata, summary []byte) error\n}\n```\nPushDeliveryMessageHandler defines the interface for the Dispatcher logic.\n\n```go\ntype PushDeliveryPublisher struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewPushDeliveryPublisher(\n\tclient EventPublisher,\n\temailTopic,\n\twebhookTopic,\n\tgithubIssueTopic string,\n) *PushDeliveryPublisher\n```\n\n```go\nfunc (p *PushDeliveryPublisher) PublishEmailJob(ctx context.Context, job workertypes.EmailDeliveryJob) error\n```\n\n```go\nfunc (p *PushDeliveryPublisher) PublishGitHubIssueJob(\n\tctx context.Context,\n\tjob githubissuedeliveryv1.GitHubIssueDeliveryEvent,\n) error\n```\n\n```go\nfunc (p *PushDeliveryPublisher) PublishWebhookJob(ctx context.Context, job workertypes.WebhookDeliveryJob) error\n```\n\n```go\ntype PushDeliverySubscriberAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewPushDeliverySubscriberAdapter(\n\tdispatcher PushDeliveryMessageHandler,\n\teventSubscriber EventSubscriber,\n\tsubscriptionID string,\n) *PushDeliverySubscriberAdapter\n```\n\n```go\nfunc (a *PushDeliverySubscriberAdapter) Subscribe(ctx context.Context) error\n```\n\n```go\ntype SubscriberConfig struct {\n\tSearchSubscriptionID      string\n\tBatchUpdateSubscriptionID string\n}\n```\n\n```go\ntype VCSScannerSubscriberAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewVCSScannerSubscriberAdapter(\n\tprocessor VCSScannerTaskProcessor,\n\teventSubscriber EventSubscriber,\n\tsubscriptionID string,\n) *VCSScannerSubscriberAdapter\n```\n\n```go\nfunc (a *VCSScannerSubscriberAdapter) Subscribe(ctx context.Context) error\n```\n\n```go\ntype VCSScannerTaskProcessor interface {\n\tProcessTask(ctx context.Context, task codescantaskv1.CodeScanTaskEvent) error\n}\n```\nVCSScannerTaskProcessor defines the interface for scanning code trees.\n\n```go\ntype VCSSyncPublisherAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\nVCSSyncPublisherAdapter publishes code scan task events to Pub/Sub on behalf of the VCS sync workflow.\n\n```go\nfunc NewVCSSyncPublisherAdapter(client EventPublisher, topicID string) *VCSSyncPublisherAdapter\n```\nNewVCSSyncPublisherAdapter constructs a new VCSSyncPublisherAdapter instance.\n\n```go\nfunc (p *VCSSyncPublisherAdapter) PublishCodeScanTask(\n\tctx context.Context,\n\ttask codescantaskv1.CodeScanTaskEvent,\n) error\n```\nPublishCodeScanTask enqueues a code scan task event to the designated Pub/Sub topic.\n\n```go\ntype WebhookSender interface {\n\tSendWebhook(ctx context.Context, job workertypes.IncomingWebhookDeliveryJob) error\n}\n```\nWebhookSender defines the interface for sending webhooks.\n\n```go\ntype WebhookWorkerSubscriberAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWebhookWorkerSubscriberAdapter(\n\tsender WebhookSender,\n\teventSubscriber EventSubscriber,\n\tsubscriptionID string,\n) *WebhookWorkerSubscriberAdapter\n```\n\n```go\nfunc (a *WebhookWorkerSubscriberAdapter) Subscribe(ctx context.Context) error\n```\n\n","path":"github.com/GoogleChrome/webstatus.dev/lib/gcppubsub/gcppubsubadapters","name":"gcppubsubadapters","synopsis":"","isRedistributable":true}
