openpectus.aggregator.webpush_publisher

Attributes

logger

Classes

WebPushPublisher

Module Contents

openpectus.aggregator.webpush_publisher.logger
class openpectus.aggregator.webpush_publisher.WebPushPublisher(webpush_keys_path)
Parameters:

webpush_keys_path (str)

webpush_keys_path
wp = None
setup_webpush()
async publish_test_message(user_id)
Parameters:

user_id (None | str)

async publish_message(notification, topic, process_unit)
Parameters:
_get_subscriptions_for_topic(topic, process_unit, webpush_repo)
Parameters:
Return type:

Sequence[openpectus.aggregator.data.models.WebPushSubscription]

async _post_webpush(subscription, web_push_repository, notification)
Parameters: