Slide 28
Slide 28 text
class Message:
def __init__(self, id: str, data: str, published_at: str) -> None:
class PubSubClient:
def __init__(self, topic: str, subscription: str) -> None:
def create_topic(self) -> None:
def create_subscription(self) -> None:
def add_message(self, msg: Message, timeout: int, retries: int) -> None:
def get_message(self, timeout: int, retries: int) -> Message | None:
def mark_message_done(self, msg_id: str, timeout: int, retries: int) -> None:
def clear_message_queue(self) -> None: pass
def close_client(self) -> None: pass
Library
2 of 2