Liking cljdoc? Tell your friends :D

clj-headlights.pubsub

Helpers to use Pub/Sub in DataFlow jobs

Helpers to use Pub/Sub in DataFlow jobs
raw docstring

pubsub-url->typeclj

(pubsub-url->type url)

Inputs: [url :- s/Str] Returns: s/Str

Extract the type from a PubSub URL, e.g. topics in projects/my-project/topics/my-topic

Inputs: [url :- s/Str]
Returns: s/Str

Extract the type from a PubSub URL, e.g. topics in projects/my-project/topics/my-topic
sourceraw docstring

read-streamclj

(read-stream url)

Inputs: [url :- (s/maybe s/Str)] Returns: (s/maybe PTransform)

Create a PTransform that reads either a Pub/Sub topic or subscription, based on the given URL.

Inputs: [url :- (s/maybe s/Str)]
Returns: (s/maybe PTransform)

Create a PTransform that reads either a Pub/Sub topic or subscription, based on the given URL.
sourceraw docstring

read-stream-with-tsclj

(read-stream-with-ts url)
(read-stream-with-ts url attr-name)

Inputs: ([url :- (s/maybe s/Str)] [url :- (s/maybe s/Str) attr-name :- s/Str]) Returns: (s/maybe PTransform)

Create a PTransform that reads a Pub/Sub topic or subscription, based on the given URL. Uses .timestampLabel to assign timestamps to each message. Defaults to looking up the 'ts' attribute if no other name is provided.

Inputs: ([url :- (s/maybe s/Str)] [url :- (s/maybe s/Str) attr-name :- s/Str])
Returns: (s/maybe PTransform)

Create a PTransform that reads a Pub/Sub topic or subscription, based on
the given URL. Uses .timestampLabel to assign timestamps to each message.
Defaults to looking up the 'ts' attribute if no other name is provided.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close