MCPcopy Create free account
hub / github.com/decodableco/examples / __init__

Method __init__

osquery/consumer.py:7–9  ·  view source on GitHub ↗
(self, service_url, topic, token, consumer)

Source from the content-addressed store, hash-verified

5class Consumer:
6
7 def __init__(self, service_url, topic, token, consumer):
8 self.client = pulsar.Client(service_url, authentication=pulsar.AuthenticationToken(token))
9 self.consumer = self.client.subscribe(topic, consumer)
10
11 def consume(self):
12 waitingForMsg = True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected